-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathruff.toml
More file actions
41 lines (36 loc) · 859 Bytes
/
ruff.toml
File metadata and controls
41 lines (36 loc) · 859 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
target-version = "py312"
line-length = 88
force-exclude = true
extend-exclude = [
"__pycache__",
"build",
"_version.py",
"docs/**",
]
[lint]
select = [
"F", # Pyflakes
"E", # pycodestyle errors
"W", # pycodestyle warnings
"C", # mccabe complexity
"B", # flake8-bugbear
"I", # isort
]
ignore = [
"B905", # zip without explicit strict parameter
"C901", # too complex
"E203", # whitespace before ':'
]
[lint.extend-per-file-ignores]
"trx/tests/**" = ["B011"]
[lint.isort]
case-sensitive = true
combine-as-imports = true
force-sort-within-sections = true
known-first-party = ["trx"]
no-sections = false
order-by-type = true
relative-imports-order = "closest-to-furthest"
section-order = ["future", "standard-library", "third-party", "first-party", "local-folder"]
[format]
quote-style = "double"