-
Notifications
You must be signed in to change notification settings - Fork 1
/
ruff.toml
46 lines (42 loc) · 1.26 KB
/
ruff.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
extend-exclude = [".tox", ".eggs" ,"static", "ci/templates"]
ignore = [
"RUF001", # ruff-specific rules ambiguous-unicode-character-string
"S101", # flake8-bandit assert
"S308", # flake8-bandit suspicious-mark-safe-usage
"S603", # subprocess vulnerabilites irrelevant within internal tooling
"S605", # subprocess vulnerabilites irrelevant within internal tooling
"S606", # subprocess vulnerabilites irrelevant within internal tooling
"E501", # pycodestyle line-too-long
]
line-length = 89
select = [
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"E", # pycodestyle errors
"EXE", # flake8-executable
"F", # pyflakes
"I", # isort
"INT", # flake8-gettext
"PIE", # flake8-pie
"PLC", # pylint convention
"PLE", # pylint errors
"PT", # flake8-pytest-style
"PTH", # flake8-use-pathlib
"Q", # flake8-quotes
"RSE", # flake8-raise
"RUF", # ruff-specific rules
"S", # flake8-bandit
"UP", # pyupgrade
"W", # pycodestyle warnings
]
src = ["src", "tests"]
target-version = "py39"
[flake8-pytest-style]
fixture-parentheses = false
mark-parentheses = false
[isort]
forced-separate = ["conftest"]
force-single-line = true
[flake8-quotes]
inline-quotes = "single"