-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruff.toml
56 lines (49 loc) · 1.46 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
# Copied originally from pandas
target-version = "py310"
# fix = true
lint.unfixable = []
lint.select = [
"I", # isort
"F", # pyflakes
"E", "W", # pycodestyle
"YTT", # flake8-2020
"B", # flake8-bugbear
"Q", # flake8-quotes
"T10", # flake8-debugger
"INT", # flake8-gettext
"PLC", "PLE", "PLR", "PLW", # pylint
"PIE", # misc lints
"PYI", # flake8-pyi
"TID", # tidy imports
"ISC", # implicit string concatenation
"TCH", # type-checking imports
"C4", # comprehensions
"PGH" # pygrep-hooks
]
lint.ignore = [
"ISC001", # Disable this for compatibility with ruff format
"B028", # No explicit `stacklevel` keyword argument found
"B905", # `zip()` without an explicit `strict=` parameter
"E402", # module level import not at top of file
"E731", # do not assign a lambda expression, use a def
"PLC1901", # compare-to-empty-string
"PLR0911", # Too many returns
"PLR0912", # Too many branches
"PLR0913", # Too many arguments to function call
"PLR2004", # Magic number
"PYI021", # Docstrings should not be included in stubs
"PLR0915", # Too many statements
]
# TODO : fix these and stop ignoring. Commented out ones are common and OK to except.
lint.extend-ignore = [
"PGH004", # Use specific rule codes when using `noqa`
]
extend-exclude = [
"docs",
"validate",
"*.ipynb",
]
[lint.pycodestyle]
max-line-length = 100 # E501 reports lines that exceed the length of 100.
[lint.extend-per-file-ignores]
"__init__.py" = ["E402", "F401", "F403"]