forked from paperswithcode/ai-deadlines
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathruff.toml
61 lines (57 loc) · 1.17 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
line-length = 120
target-version = "py310"
preview = true
[lint]
select = [
"A", # flake8 builtins
"B", # flake8-bugbear
"D", # pydocstyle
"E", # pycodestyle error
"W", # pycodestyle warning
"F", # flake8 error
"UP", # Pyupgrade
"SIM", # flake8-simplify
"N", # pep8 naming
"YTT", # flake8-2020
"S", # bandit
"COM", # Commas
"C4", # Comprehensions
"DTZ", # Datetimes
"ISC", # Implicit string concatenation
"ICN", # Import conventions
"LOG", # Logging
"PIE", # Misc lints
"PT", # Pytest
"Q", # Quotes
"RSE", # Raises
"TID", # Tidy imports
"PTH", # Use Pathlib
"PGH", # Pygrep hooks
"R", # Refactor
"FLY", # Fstrings
"PERF", # Perfomance linting
"FURB", # Modernising code
"RUF", # Ruff specific
"NPY", # Numpys
# "PL", # Pylint
# "TD", # Todos
# "FBT", # Boolean traps
# "CPY", # Copyright
]
ignore = [
"E203",
"D100",
"D101",
"D102",
"D103",
"D104",
"D105",
"D401",
"S101",
"B028",
"B018",
"PT018",
"RET504",
]
[lint.pydocstyle]
convention = "numpy"