-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to ruff in tests and precommit (#786)
- Loading branch information
Showing
35 changed files
with
186 additions
and
143 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
[tool.ruff] | ||
select = [ | ||
"D", | ||
"E", | ||
"F", | ||
"G", | ||
"I", | ||
"PLC", | ||
"PLE", | ||
"PLR", | ||
"PLW", | ||
"UP", | ||
"W", | ||
] | ||
ignore = [ | ||
"D202", | ||
"D212", | ||
"D203", | ||
"D213", | ||
"E501", | ||
"PLR0911", # Too many return statements ({returns} > {max_returns}) | ||
"PLR0912", # Too many branches ({branches} > {max_branches}) | ||
"PLR0913", # Too many arguments to function call ({c_args} > {max_args}) | ||
"PLR0915", # Too many statements ({statements} > {max_statements}) | ||
"PLR2004", # Magic value used in comparison, consider replacing {value} with a constant variable | ||
"PLW2901", # Outer {outer_kind} variable {name} overwritten by inner {inner_kind} target | ||
"UP006", # keep type annotation style as is | ||
"UP007", # keep type annotation style as is | ||
] | ||
exclude = [ | ||
".venv", | ||
".git", | ||
".tox", | ||
"docs", | ||
"venv", | ||
"bin", | ||
"lib", | ||
"deps", | ||
"build", | ||
] | ||
line-length = 88 | ||
|
||
[tool.ruff.isort] | ||
force-sort-within-sections = true | ||
known-first-party = [ | ||
"zwave_js_server", | ||
] | ||
combine-as-imports = true | ||
split-on-trailing-comma = false | ||
case-sensitive = true |
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,7 +1,6 @@ | ||
black==23.9.1 | ||
flake8==6.1.0 | ||
mypy==1.5.1 | ||
pydocstyle==6.3.0 | ||
pylint==3.0.1 | ||
pylint-strict-informational==0.1 | ||
pre-commit==3.5.0 | ||
ruff==0.0.292 |
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
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
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.