-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
67 lines (62 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
59
60
61
62
63
64
65
66
67
# https://mypy.readthedocs.io/en/stable/config_file.html
[tool.mypy]
python_version = "3.8"
ignore_missing_imports = true
exclude = [
'build/',
'tests/',
]
# https://docs.pytest.org/en/stable/reference/reference.html#ini-options-ref
[tool.pytest.ini_options]
log_cli = "true"
log_cli_level = "INFO"
log_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
log_cli_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
log_date_format = "%Y-%m-%d %H:%M:%S"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
norecursedirs = [
".venv",
".git",
".mypy_cache",
".pytest_cache",
]
asyncio_mode = "strict"
# https://docs.astral.sh/ruff/settings/
[tool.ruff]
exclude = [
".git",
"__pycache__",
".mypy_cache",
".pytest_cache",
".venv",
".eggs",
"build",
"test.*",
"_typing.py",
]
ignore = [
"E115",
"E221",
"E241",
"E402",
"E731",
"Q001", # double quotes for multiline strings
"Q002", # double quotes for doctstrings
]
line-length = 99
select = [
"C9",
"E",
"F",
"Q",
"W",
]
[tool.ruff.flake8-quotes]
inline-quotes = "single"
multiline-quotes = "single"
docstring-quotes = "single"
[tool.ruff.format]
line-ending = "lf"
quote-style = "single"
[tool.ruff.mccabe]
max-complexity = 15