-
Notifications
You must be signed in to change notification settings - Fork 28
/
pyproject.toml
43 lines (34 loc) · 1008 Bytes
/
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
[tool.black]
line-length = 100
[tool.pylint]
[tool.pylint.format]
max-line-length = 100
[tool.pylint.master]
no-docstring-rgx = "__.*__"
[tool.pylint.messages_control]
disable = ["duplicate-code", "fixme"]
enable = [
"useless-suppression", # Identify unneeded pylint disable statements
]
[tool.ruff]
line-length = 100
select = [
"D", # pydocstyle
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"W", # pycodestyle
"YTT", # flake8-2020
]
builtins = ["_"]
target-version = "py39"
[tool.ruff.isort]
force-single-line = true # Force from .. import to be 1 per line, minimizing changes at time of implementation
lines-after-imports = 2 # Ensures consistency for cases when there's variable vs function/class definitions after imports
lines-between-types = 1 # Separate import/from with 1 line, minimizing changes at time of implementation
no-lines-before = [
"local-folder"
] # Keeps local imports bundled with first-party
[tool.ruff.pydocstyle]
convention = "google"