-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Shah, Karan <[email protected]>
- Loading branch information
1 parent
a26bdb2
commit 0f7dc74
Showing
6 changed files
with
31 additions
and
56 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 |
---|---|---|
@@ -1,4 +1,2 @@ | ||
black | ||
flake8 | ||
isort | ||
pre-commit | ||
ruff |
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,27 @@ | ||
[tool.black] | ||
[tool.ruff] | ||
line-length = 100 | ||
|
||
[tool.isort] | ||
profile = "black" | ||
force_single_line = "False" | ||
line_length = 100 | ||
[tool.ruff.lint] | ||
select = [ | ||
"B", # Bandit security checks (e.g., detecting insecure function use). | ||
"C", # Cyclomatic complexity, used to flag overly complex functions. | ||
"E", # PEP8 errors (e.g., style issues). | ||
"F", # Pyflakes errors, like unused imports or undefined names. | ||
"W", # PEP8 warnings (e.g., deprecations). | ||
"B9", # Bugbear, for additional warnings about potentially error-prone code. | ||
"I", # isort | ||
] | ||
ignore = [ | ||
"E266", # too many leading '#' for block comments | ||
"E741", # ambiguous variable name | ||
"E731", # do not assign a `lambda` expression, use a `def` | ||
"B904", # ignore exception distinguishing | ||
"B006", # mutable data structures as default args | ||
] | ||
|
||
[tool.ruff.lint.per-file-ignores] | ||
"**/__init__.py" = ["E501", "F401"] # lines too long; imported but unused | ||
|
||
[tool.ruff.lint.isort] | ||
force-single-line = false | ||
known-first-party = ["openfl"] |
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