forked from securefederatedai/openfl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
27 lines (24 loc) · 937 Bytes
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
[tool.ruff]
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"]