forked from Delgan/loguru
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
30 lines (24 loc) · 826 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
[tool.black]
force-exclude = "tests/exceptions/source/modern/*"
line-length = 100
target-version = ["py35"]
[tool.mypy]
strict = true
[tool.pytest.ini_options]
addopts = "-l"
filterwarnings = [
# Mixing threads and "fork()" is deprecated, but we need to test it anyway.
'ignore:.*use of fork\(\) may lead to deadlocks in the child.*:DeprecationWarning'
]
testpaths = ["tests"]
[tool.ruff]
exclude = ["tests/exceptions/source/*"]
line-length = 100
# Enforce pyflakes(F), pycodestyle(E, W), isort (I), bugbears (B), and pep8-naming (N) rules.
select = ["F", "E", "W", "I", "B", "N"]
[tool.ruff.pycodestyle]
max-doc-length = 100
[tool.typos.default]
extend-ignore-re = ["(?Rm)^.*# spellchecker: disable-line$"]
[tool.typos.files]
extend-exclude = ["tests/exceptions/output/**"] # False positive due to ansi sequences.