forked from proxmoxer/proxmoxer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added to pre-commit * Added VS Code extension * Adjusted rules to allow existing code base * Removed isort, black, and flake8 pre-commit hooks
- Loading branch information
Showing
3 changed files
with
29 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
[tool.black] | ||
[tool.ruff] | ||
line-length = 100 | ||
target-version = ['py37'] | ||
exclude = [".git", "__pycache__", "old", "build", "dist", "*.egg-info"] | ||
|
||
[tool.ruff.lint] | ||
# https://docs.astral.sh/ruff/rules/ | ||
select = ["F", "T20", "PL", "I"] | ||
ignore = ["PLR0913", "PLR2004", "PLR0912"] | ||
|
||
[tool.ruff.lint.per-file-ignores] | ||
"**/tests/*" = ["F811"] | ||
|
||
[tool.ruff.format] | ||
quote-style = "double" | ||
indent-style = "space" | ||
docstring-code-format = true | ||
docstring-code-line-length = "dynamic" |