-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
41 lines (36 loc) · 1003 Bytes
/
pyproject.toml
File metadata and controls
41 lines (36 loc) · 1003 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
[tool.ruff]
target-version = "py311"
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"SIM", # flake8-simplify
"S", # flake8-bandit (subset — full scan done by bandit separately)
"T20", # flake8-print
"RUF", # ruff-specific rules
]
ignore = [
"S101", # assert usage — fine in non-test code here
"S104", # binding to 0.0.0.0 — not applicable
"S311", # random is not used for crypto here
]
[tool.ruff.lint.per-file-ignores]
"src/__init__.py" = ["F401"]
# strings.py contains intentional Russian text with lookalike characters
"src/strings.py" = ["RUF001"]
[tool.ruff.lint.isort]
known-first-party = ["src"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.bandit]
targets = ["src"]
severity = "medium"
confidence = "medium"
skips = ["B101", "B311"]