-
Notifications
You must be signed in to change notification settings - Fork 63
/
Copy pathpyproject.toml
58 lines (55 loc) · 1.3 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
55
56
57
58
[tool.pytest.ini_options]
filterwarnings = ["ignore:numpy.ndarray size changed:RuntimeWarning"]
[tool.ruff]
line-length = 79
target-version = "py39"
[tool.ruff.lint]
select = [
"A", # builtins
"ASYNC", # async
"B", # bugbear
"C4", # comprehensions
# "COM", # commas
# "DTZ", # datetime
"E", # pycodestyle
# "EM", # flake8-errmsg
"ERA", # eradicate
"EXE", # shebang
"F", # pyflakes
"G", # logging-format
# "FBT", # flake8-boolean-trap
# "FIX", # has fixme
"FURB", # refurb
"I", # isort
"INT", # flake8-gettext
"NPY", # numpy
# "PD", # pandas-vet
"PIE", # flake8-pie
"PERF", # performance
"PLE", # pylint error
"PLW", # pylint warning
# "PTH", # pathlib
"Q", # flake8-quotes
# "RET", # flake8-return
"RUF", # ruff specific
# "S608", # SQL injection
# "SIM", # simplify
"T20", # print
# "TRY", # try-except-raise
"UP", # pyupgrade
"W", # pycodestyle
"YTT", # flake8-2020
]
ignore = [
"C408", # dict comprehension
"PERF203", # try,except within a loop
"PLR2004", # magic numbers
"UP031", # format specifiers
]
[tool.ruff.lint.per-file-ignores]
"{scripts,tests}/**/*.py" = [
"T20", # print
]
"tests/**/*.py" = [
"S101", # assert
]