-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
78 lines (65 loc) · 1.29 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
68
69
70
71
72
73
74
75
76
77
78
# Autogenerated by https://github.com/BarnabyShearer/meta
[build-system]
requires = ["setuptools", "wheel", "setuptools_scm"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
[tool.mypy]
strict = true
mypy_path = "$MYPY_CONFIG_FILE_DIR/types"
[tool.isort]
profile = "black"
[tool.flake8]
max-line-length = 88
extend-ignore = "D202,D403,E203"
max-complexity = 10
[tool.coverage.run]
branch = true
command_line = "-m pytest"
omit = [".tox/*"]
[tool.coverage.report]
show_missing = true
[tool.pytest.ini_options]
addopts = "-p no:cacheprovider --doctest-modules -v tests"
[tool.tox]
legacy_tox_ini = """
[tox]
isolated_build = true
envlist = py27,py3{7,8,9,10}
[gh-actions]
python =
2.7: py27
3.7: py37
3.8: py38
3.9: py39
3.10: py310
[testenv]
deps =
mypy[python2]
black
isort
pytest
coverage
pep8-naming
flake8-docstrings
pyproject-flake8
commands =
black --check --diff .
isort --check --diff .
mypy .
pflake8 .
coverage run
coverage report --fail-under=100
[testenv:py27]
skipsdist = True
skip_install = True
deps =
mock
pytest
coverage[toml]
commands =
pip3 install build
python3 -m build
bash -c "python2 -m pip install dist/*.whl"
coverage run
coverage report --fail-under=100
"""