-
Notifications
You must be signed in to change notification settings - Fork 58
/
pyproject.toml
58 lines (49 loc) · 1.28 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
[build-system]
requires = ["setuptools>=42", "wheel"]
[tool.ruff]
target-version = "py310"
[tool.ruff.lint]
select = [
"B904", # bugbear (Within an except clause, raise exceptions with raise ... from err)
"B905", # bugbear (zip() without an explicit strict= parameter set.)
# "C9", # mccabe complexity
"E", # pycodestyles
"W", # pycodestyles
"F", # pyflakes
"I", # isort
"PLC", # pylint conventions
"PLE", # pylint errors
"UP", # pyupgrade
]
ignore = ["E402", "E501", "E731", "E741"]
[tool.mypy]
python_version = "3.10"
show_error_codes = true
warn_unreachable = true
# Strict checks
disallow_untyped_calls = false
disallow_untyped_defs = false
disallow_incomplete_defs = true
no_implicit_optional = true
[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = true
envlist = doc,py36,py37,py38,py39,coverage
skipsdist=true
[testenv]
whitelist_externals = poetry
commands =
pip install --editable . pytest pytest-httpserver
pytest {posargs}
[testenv:doc]
commands =
pip install --editable .
pip install --requirement doc/requirements.txt
sphinx-build doc build/sphinx/html
[testenv:coverage]
commands =
pip install --editable . pytest pytest-httpserver coverage
coverage run -m pytest {posargs}
coverage html
"""