InvokeAI/invokeai/app
psychedelicious 4395ee3c03 feat: parse config before importing anything else
We need to parse the config before doing anything related to invocations to ensure that the invocations union picks up on denied nodes.

- Move that to the top of api_app and cli_app
- Wrap subsequent imports in `if True:`, as a hack to satisfy flake8 and not have to noqa every line or the whole file
- Add tests to ensure graph validation fails when using a denied node, and that the invocations union does not have denied nodes (this indirectly provides confidence that the generated OpenAPI schema will not include denied nodes)
2023-09-08 13:24:37 -04:00
..
api experimental: Add CV2 Infill 2023-09-02 04:48:18 +12:00
assets/images tweaks in response to psychedelicious review of PR 2023-07-26 15:27:04 +10:00
cli Resolving merge conflicts for flake8 2023-08-18 15:52:04 +10:00
invocations feat(backend): allow/deny nodes - do not parse args again 2023-09-08 13:24:37 -04:00
models feat(nodes): refactor parameter/primitive nodes 2023-08-16 09:54:38 +10:00
services feat: ignore unknown args 2023-09-08 13:24:37 -04:00
util Resolving merge conflicts for flake8 2023-08-18 15:52:04 +10:00
api_app.py feat: parse config before importing anything else 2023-09-08 13:24:37 -04:00
cli_app.py feat: parse config before importing anything else 2023-09-08 13:24:37 -04:00