-
Notifications
You must be signed in to change notification settings - Fork 8
/
tox.ini
65 lines (57 loc) · 1.23 KB
/
tox.ini
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
[tox]
envlist = py38
; envlist = py37, py38, py39
isolated_build = true
[testenv]
deps =
pytest>=6.2.5
tox>=3.24.4
flake8>=^3.9.2
black>=21.9b0
pydocstyle>=6.1.1
mypy>=0.910
types-requests>=2.26.1
isort>=5.10.1
commands =
pytest
black --check gluestick/
flake8 gluestick
pydocstyle gluestick
mypy gluestick --exclude='tests'
[testenv:pytest]
# Run the python tests.
# To execute, run `tox -e pytest`
envlist = py37, py38, py39
deps = pytest>=6.2.5
commands = pytest
[testenv:format]
# Attempt to auto-resolve lint errors before they are raised.
# To execute, run `tox -e format`
deps =
black>=21.9b0
isort>=5.10.1
commands =
black gluestick/
isort gluestick
[testenv:lint]
# Raise an error if lint and style standards are not met.
# To execute, run `tox -e lint`
deps =
flake8>=^3.9.2
black>=21.9b0
pydocstyle>=6.1.1
mypy>=0.910
isort>=5.10.1
commands =
black --check --diff gluestick/
isort --check gluestick
flake8 gluestick
pydocstyle gluestick
# refer to mypy.ini for specific settings
mypy gluestick --exclude='tests'
[flake8]
ignore = W503,C901
max-line-length = 88
max-complexity = 10
[pydocstyle]
ignore = D105,D203,D213,D210