-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* build: Change lint settings to ruff - Removes references to flake8 and isort - Sets certain basic rules, including the default flake8 and isort ones. - Several other proposed rules are included, but only whitespace/non-functional/non-refactoring are not commented out. Co-Authored-By: Daniel Parizher <105245560+Arborym@users.noreply.github.com> * build: Adjust ruff/black run logic - In particular, black may need to enforce changes after ruff performs an auto fix. This places ruff ahead of black. * style: Whitespace/non-functional linting+formatting - Applies new linting and formatting rules. * refactor: Apply more linting rules from ruff style: Certain changes were also stylistic in nature. - Enabled and Enforced `flake8-return` (RET), `flake8-simplify` (SIM), flake8-unused-arguments (ARG) and RUF100 (checks for unused `#noqa` tags) - Certain changes, such as from `flake8-return` represent a stylistic decision on my part, and may not be agreeable to everyone. - The high line count changes in `webui.py` are mostly consolidating context managers - `model-stats.py` and `pop-stats.py` had raw `open()` calls, and regardless of rules ultimately chosen, should be fixed. * build: Re-adjust proposed rules style: Also enforces flake8-comprehensions ("C4") and flake8-raise ("RSE") * build: Suggests flake8-blind-except * build: Include pyflakes and pycodestyle linting rules. * build: Show ruff diff on CI fail * build: Upgrade actions versions * build: Remove bash call, invoke python directly for lint * build: style.py debug option, Check if 'nataili' folder exists - Adds the `--debug` option to style.py to help sort of CI linting issues. - Checks to see if 'nataili' exists, which has the effect of confusing ruff. * style: Post 'nataili' folder check import sort fixes - These import sorts were not being included due to my local repo containing a folder named 'nataili'. * Revert "build: Remove bash call, invoke python directly for lint" This reverts commit a976c83. * fix: allow to run with nataili folder --------- Co-authored-by: Daniel Parizher <105245560+Arborym@users.noreply.github.com> Co-authored-by: Divided by Zer0 <mail@dbzer0.com>
- Loading branch information
1 parent
6fcaae9
commit 6e9ec4b
Showing
17 changed files
with
438 additions
and
394 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
black==22.3.0 | ||
flake8==3.8.1 | ||
isort==5.10.1 | ||
black==23.3.0 | ||
ruff>=0.0.259 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.