-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
52 lines (49 loc) · 1.24 KB
/
pyproject.toml
File metadata and controls
52 lines (49 loc) · 1.24 KB
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
47
48
49
50
51
52
[tool.ruff]
target-version = "py38"
line-length = 120
src = ["*"]
exclude = []
[tool.ruff.lint]
select = [
"E4", # Pycodestyle error codes that are safe to auto-fix
"E7",
"E9",
"A", # builtins
"ARG", # Unused arguments
"C4", # Comprehensions
"C90", # mccabe complexity
"D", # Documentation check
"F", # Flake8 rules
"N", # pep8 naming
"I", # isort rules for import ordering
"ICN", # Import conventions
"TID", # Tidy imports
"UP", # pyupgrade (for safe code modernization)
"SIM", # Code simplifications
"LOG", # Logger usage
"PIE", # Miscellaneous
"RUF", # Ruff-specific auto-fixable rules
"PD", # Pandas checks
"NPY", # NumPy checks
"PERF", # Performance anti-pattern checks
"FURB", # Old Python code
"PT", # Pytest checks
"RET", # Returns
"PTH", # Prefer Pathlib
"TC", # Type checking
"ANN", # Type annotations
"EM", # Error messages
"TD", # Todos format
"FLY", # Prefer f-string
"TRY", # Exceptions antipattern checks
"SLOT",
"PYI",
]
ignore = [
"ANN401", # Any typing
"D1", # Undocumented
"D203", # Incorrect blank line before class
"D212", # Multi-line summary first line
]
[tool.ruff.format]
quote-style = "preserve"