-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable most tests in Ruff.
- Loading branch information
Showing
5 changed files
with
23 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,6 @@ | |
--- | ||
repos: | ||
- repo: https://github.com/tox-dev/pyproject-fmt | ||
rev: "0.9.2" | ||
rev: "1.7.0" | ||
hooks: | ||
- id: pyproject-fmt |
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,45 +1,22 @@ | ||
[tool.black] | ||
line-length = 100 | ||
target-version = ['py38'] | ||
exclude = ''' | ||
/( | ||
\.eggs | ||
| \.git | ||
| \.venv | ||
| \venv | ||
| _build | ||
| build | ||
| dist | ||
| .tox | ||
)/ | ||
''' | ||
|
||
[tool.ruff] | ||
src = ["src"] | ||
output-format = "grouped" | ||
target-version = "py38" | ||
line-length = 100 | ||
select = [ | ||
"A", | ||
"B", | ||
# "C", | ||
"COM", | ||
"DTZ", | ||
"E", | ||
"F", | ||
"I", | ||
"ISC", | ||
"N", | ||
"PT", | ||
"Q", | ||
"RET", | ||
"RUF", | ||
"SIM", | ||
"UP", | ||
"W292", | ||
"YTT", | ||
] | ||
|
||
[tool.ruff.lint] | ||
select = ["ALL"] | ||
ignore = [ | ||
"RUF012", | ||
"ANN", # Mypy is better at this. | ||
"COM812", # conflicts with formatter | ||
"C901", # Leave complexity to me. | ||
"D", # We have different ideas about docstrings. | ||
"INP001", # we don't care that these are in implicit namespace packages | ||
"ISC001", # conflicts with formatter | ||
"PLR0912", # Leave complexity to me. | ||
"PLR0915", # Leave complexity to me. | ||
"PLW0603", # globals are used intentionally here | ||
"RUF012", # no need for this warning in Ansible modules | ||
"S101", # assert | ||
"TRY301", # Raise in try blocks can totally make sense. | ||
] | ||
unfixable = ["F401"] |
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