-
Notifications
You must be signed in to change notification settings - Fork 23
/
.ruff.toml
53 lines (51 loc) · 1.39 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
[lint]
select = [
"ARG", # flake8-unused-arguments
"ANN", # flake8-annotations
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"D", # pydocstyle
"E", "F", "W", # flake8
"EXE", # flake8-executable
"G", # flake8-logging-format
"I", # isort
"ICN", # flake8-import-conventions
"ISC", # flake8-implicit-str-concat
"NPY", # NumPy specific rules
"PGH", # pygrep-hooks
"PIE", # flake8-pie
"PL", # pylint
"PT", # flake8-pytest-style
"RET", # flake8-return
"RUF", # Ruff-specific
"S", # flake8-bandit
"SIM", # flake8-simplify
"UP", # pyupgrade
"YTT", # flake8-2020
"W", # Warning
]
extend-ignore = [
"ANN101", # missing-type-self
"G004", # logging-f-string
"PIE790", # unnecessary-pass
"D10", # undocumented-public-*
"D200", # One-line docstring should fit on one line
# Disable linting rules conflicting with "ruff formatter"
# See https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"COM812",
"COM819",
"D206",
"D300",
"E111",
"E114",
"E117",
"ISC001",
"ISC002",
"Q000",
"Q002",
"Q003",
"W191",
]
flake8-annotations.suppress-dummy-args = true
flake8-annotations.suppress-none-returning = true
pydocstyle.convention = "pep257"