-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use ruff instead of flake8, isort, black and pyupgrade (#202)
* Use ruff linter and formatter, add more linter rules * Remove other unnecessary hooks
- Loading branch information
1 parent
3d7c9d2
commit 3d2cfb1
Showing
7 changed files
with
45 additions
and
62 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# TODO: Move entire setup.cfg to pyproject.toml | ||
|
||
[tool.ruff] | ||
line-length = 88 | ||
show-fixes = true | ||
target-version = "py38" | ||
|
||
[tool.ruff.lint] | ||
# TODO: Fixup all instances of B904 and enable this rule | ||
ignore = ["E501", "B904"] | ||
select = [ | ||
"ARG", # flake8-unused-arguments | ||
"B", # flake8-bugbear | ||
"E", # pycodestyle | ||
"F", # pyflake | ||
"I", # isort | ||
"PLE", # pylint error rules | ||
"PLW", # pylint warning rules | ||
"PLC", # pylint convention rules | ||
"RUF", # ruff-specific rules | ||
"UP" # pyupgrade | ||
] | ||
|
||
[tool.ruff.lint.per-file-ignores] | ||
"tests/*" = ["ARG001"] |
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