-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpyproject.toml
37 lines (32 loc) · 939 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
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
[tool.ruff]
target-version = "py310"
line-length = 88
[tool.ruff.lint]
ignore = [
"E402", # ignore import-at-top-of-file violations
"E501", # ignore line-length violations
"F811", # ignore redefinition of a function
"B019", # ignore functools cache/lru_cache
"UP030", # allow explicit positional string formatting
]
select = [
"B", # flake8-bugbear
"C", # flake8-comprehensions
"C90", # mccabe
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
"W", # pycode warnings
]
[tool.ruff.lint.mccabe]
max-complexity = 20
[tool.pytest.ini_options]
log_cli = 0
log_cli_level = "INFO"
log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"