Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce pre-commit, black, isort, ... #2822

Merged
merged 58 commits into from
Mar 1, 2023

Conversation

mauwii
Copy link
Contributor

@mauwii mauwii commented Feb 26, 2023

basically the changes I tried to introduce in #2687 (which could imho be closed then 🙈)

- add feature `content.tabs.link`
- for now only disable `MD046`
- add flake8-black to dev extras
- update `.flake8`
- update flake8 pre-commit hook
- better order of hooks
- add flake8-comprehensions and flake8-simplify
- remove unecesarry hooks which are covered by previous hooks
- add hooks
  - check-executables-have-shebangs
  - check-shebang-scripts-are-executable
so that default excludes are not overwritten
black:
- extend-exclude legacy scripts
- config for python 3.9 as long as we support it
isort:
- set atomic to true to only apply if no syntax errors are introduced
- config for python 3.9 as long as we support it
- extend_skib_glob legacy scripts
- filter_files
- match line_length with black
- remove_redundant_aliases
- skip_gitignore
- set src paths
- include virtual_env to detect third party modules
additional layer to prevent accidential commits directly to main branch
- disable ul-indent
- disable list-marker-space
mauwii and others added 16 commits February 26, 2023 21:27
- this also reformated `docs/index.md`
- prepend brand icons on tabs
- add missing asterisk for backend package
- remove old comment
author Kyle Schouviller <kyle0654@hotmail.com> 1669872800 -0800
committer Kyle Schouviller <kyle0654@hotmail.com> 1676240900 -0800

Adding base node architecture

Fix type annotation errors

Runs and generates, but breaks in saving session

Fix default model value setting. Fix deprecation warning.

Fixed node api

Adding markdown docs

Simplifying Generate construction in apps

[nodes] A few minor changes (invoke-ai#2510)

* Pin api-related requirements

* Remove confusing extra CORS origins list

* Adds response models for HTTP 200

[nodes] Adding graph_execution_state to soon replace session. Adding tests with pytest.

Minor typing fixes

[nodes] Fix some small output query hookups

[node] Fixing some additional typing issues

[nodes] Move and expand graph code. Add base item storage and sqlite implementation.

Update startup to match new code

[nodes] Add callbacks to item storage

[nodes] Adding an InvocationContext object to use for invocations to provide easier extensibility

[nodes] New execution model that handles iteration

[nodes] Fixing the CLI

[nodes] Adding a note to the CLI

[nodes] Split processing thread into separate service

[node] Add error message on node processing failure

Removing old files and duplicated packages

Adding python-multipart
- set `max_line_length = 88` for .py
This reverts commit 357601e.
@mauwii mauwii self-assigned this Feb 26, 2023
@mauwii mauwii added documentation Improvements or additions to documentation enhancement New feature or request CI-CD Continuous integration / Continuous delivery requirements labels Feb 26, 2023
Copy link
Collaborator

@lstein lstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lstein lstein enabled auto-merge March 1, 2023 03:45
@lstein lstein merged commit bc813e4 into invoke-ai:v2.3 Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI-CD Continuous integration / Continuous delivery documentation Improvements or additions to documentation enhancement New feature or request requirements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants