-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
63 lines (61 loc) · 1.09 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
59
60
61
62
63
[tool.black]
line-length = 100
force-exclude = '''
(
/(
\.git # exclude a few common directories in the
| \.mypy_cache # root of the project
| \.tox
| \.venv
| _build
| build
| dist
| snapshots
| codegen
)/
)
'''
[tool.ruff]
select = [
# pycodestyle
"E",
# pyflakes
"F",
# pep8-naming
"N",
# flake8-unused-arguments
"ARG",
# pyupgrade
"UP",
# flake-bugbear
"B",
# flake8-builtins
"A",
# isort
"I",
# flake8-comprehensions
"C4",
# flake8-import-conventions
"ICN",
# flake8-pytest-style
"PT",
# flake8-simplify
"SIM",
# pandas-vet
"PD",
# flake8-use-pathlib - in ruff/main but not yet in the nixified version
# "PTH",
]
ignore = [
# Rule: f-string without any placeholders
# This conflicts with my semgrep rule to require f-strings when there is a
# curly brace in the string. One extra f-string is far more innocuous than a
# missed f-string, so I'm picking the semgrep rule.
"F541",
]
line-length = 100
src = ["."]
[tool.mypy]
strict = true
strict_optional = true
explicit_package_bases = true