-
Notifications
You must be signed in to change notification settings - Fork 11
/
.ruff.toml
44 lines (44 loc) · 1.52 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
lint.select = [
"E", "F", "W", # flake8
"B", # flake8-bugbear
"I", # isort
"ARG", # flake8-unused-arguments
"C4", # flake8-comprehensions
"EM", # flake8-errmsg
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"G", # flake8-logging-format
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
# "PTH", # flake8-use-pathlib
"RET", # flake8-return
"RUF", # Ruff-specific
"SIM", # flake8-simplify
"T20", # flake8-print
"UP", # pyupgrade
"YTT", # flake8-2020
"EXE", # flake8-executable
"NPY", # NumPy specific rules
"PD", # pandas-vet
]
lint.extend-ignore = [
"ISC003", # Explicitly concatenated string should be implicitly concatenated
"S307", # Usage of eval()
"G004", # Logging statement uses f-string
"PLR", # Design related pylint codes
"E501", # Line too long
"PT004", # Use underscore for non-returning fixture (use usefixture instead)
"RET505", # Unnecessary `else` after `return` statement
"E402", # Module level imports at top of file need disable for numba default imports
"NPY201", # Numpy 2 warnings ignore for the moment
]
target-version = "py37"
src = ["src"]
lint.unfixable = [
"T20", # Removes print statements
"F841", # Removes unused variables
]
lint.exclude = []
lint.flake8-unused-arguments.ignore-variadic-names = true