-
-
Notifications
You must be signed in to change notification settings - Fork 107
Expand file tree
/
Copy pathruff.toml
More file actions
51 lines (48 loc) · 2.24 KB
/
ruff.toml
File metadata and controls
51 lines (48 loc) · 2.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
show-fixes = true
line-length = 180
[lint]
ignore = [
# The following rules are conflicting with ruff formatter: https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
"W191", # https://docs.astral.sh/ruff/rules/tab-indentation/
"E111", # https://docs.astral.sh/ruff/rules/indentation-with-invalid-multiple/
"Q000", # https://docs.astral.sh/ruff/rules/bad-quotes-inline-string/
"Q001", # https://docs.astral.sh/ruff/rules/bad-quotes-multiline-string/
"Q002", # https://docs.astral.sh/ruff/rules/bad-quotes-docstring/
"Q003", # https://docs.astral.sh/ruff/rules/avoidable-escaped-quote/
"COM812", # https://docs.astral.sh/ruff/rules/missing-trailing-comma/
"PLR2004",
"ARG002",
"RUF012",
"PLR0912",
]
select = [
"ARG",
"B", # https://docs.astral.sh/ruff/rules/#flake8-bugbear-b
"C4", # https://docs.astral.sh/ruff/rules/#flake8-comprehensions-c4
"COM", # https://docs.astral.sh/ruff/rules/#flake8-commas-com
"E",
"W", # https://docs.astral.sh/ruff/rules/#pycodestyle-e-w
"EXE", # https://docs.astral.sh/ruff/rules/#flake8-executable-exe
"F", # https://docs.astral.sh/ruff/rules/#pyflakes-f
"FA", # https://docs.astral.sh/ruff/rules/#flake8-future-annotations-fa
"I", # https://docs.astral.sh/ruff/rules/#isort-i
"PGH", # https://docs.astral.sh/ruff/rules/#pygrep-hooks-pgh
"PIE", # https://docs.astral.sh/ruff/rules/#flake8-pie-pie
"PL", # https://docs.astral.sh/ruff/rules/#pylint-pl
"PT", # https://docs.astral.sh/ruff/rules/#flake8-pytest-style-pt
"PYI", # https://docs.astral.sh/ruff/rules/#flake8-pyi-pyi
"Q", # https://docs.astral.sh/ruff/rules/#flake8-quotes-q
"RET", # https://docs.astral.sh/ruff/rules/#flake8-return-ret
"RSE", # https://docs.astral.sh/ruff/rules/#flake8-raise-rse
"RUF", # https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf
"SIM", # https://docs.astral.sh/ruff/rules/#flake8-simplify-sim
"T10", # https://docs.astral.sh/ruff/rules/#flake8-debugger-t10
"UP", # https://docs.astral.sh/ruff/rules/#pyupgrade-up
# "G", # https://docs.astral.sh/ruff/rules/#flake8-logging-format-g
]
[format]
line-ending = "lf"
[lint.isort]
known-first-party = ["notifiers_cli"]
[lint.pylint]
max-args = 6