-
Notifications
You must be signed in to change notification settings - Fork 21
/
pyproject.toml
54 lines (46 loc) · 1.19 KB
/
pyproject.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
[tool.ruff]
preview = true
[tool.ruff.lint]
extend-select = [
"B", # flake8-bugbear
"C", # flake8-comprehensions
"E", # pycodestyle
"F", # pyflakes
"I", # flake8-isort
"N", # pep8-naming
"NPY", # numpy
"Q", # flake8-quotes
"W", # pycodestyle
# TODO
# "UP", # pyupgrade
# "RUF", # ruff
]
extend-ignore = [
"C90", # McCabe complexity
"E221", # multiple spaces before operator
"E241", # multiple spaces after comma
"E402", # module level import not at the top of file
"E226", # missing whitespace around operator
"N817", # CamelCase `SubstitutionRuleMappingContext` imported as acronym `SRMC`
# FIXME
"NPY002", # numpy rng
"C408", # unnecssary dict() -> literal
"E265", # block comment should start with
"F841", # local variable unused
]
[tool.ruff.lint.per-file-ignores]
"ndarray/**/*.py" = ["Q", "B", "E", "F", "N", "C4"]
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "double"
multiline-quotes = "double"
[tool.ruff.lint.isort]
combine-as-imports = true
known-first-party = [
"pytools",
"pymbolic",
]
known-local-folder = [
"modepy",
]
lines-after-imports = 2