-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathproject.toml
82 lines (78 loc) · 1.45 KB
/
project.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
[tool.ruff]
line-length = 88
target-version = "py39"
extend-exclude = ["docs/*", "local_ignore/*"]
[tool.ruff.lint]
select = [
# pyflakes
"F",
# pycodestyle
"E",
"W",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-debugger
"T10",
# flake8-simplify
# "SIM",
# pylint
"PLC",
"PLE",
"PLR",
"PLW",
# misc lints
"PIE",
# implicit string concatenation
"ISC",
# type-checking imports
"TCH",
# comprehensions
"C4",
# Ruff-specific rules
"RUF",
# isort
"I",
# pydocstyle
"D",
]
ignore = [
### Intentionally disabled
# module level import not at top of file
"E402",
# do not assign a lambda expression, use a def
"E731",
# mutable-argument-default
"B006",
# unused-loop-control-variable
"B007",
# get-attr-with-constant
"B009",
# Only works with python >=3.10
"B905",
# dict literals
"C408",
# Too many arguments to function call
"PLR0913",
# Too many returns
"PLR0911",
# Too many branches
"PLR0912",
# Too many statements
"PLR0915",
# Magic number
"PLR2004",
# Redefined loop name
"PLW2901",
# Global statements are discouraged
"PLW0603",
# compare-to-empty-string
"PLC1901",
# collection-literal-concatenation
"RUF005",
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["D"]
[tool.ruff.lint.pydocstyle]
convention = "google"