forked from stelong/GPErks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
85 lines (57 loc) · 1.76 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
; This code base adopts black, the uncompromising code formatter.
; If you want to learn more about black, please read:
; https://black.readthedocs.io/en/stable/index.html
; We configure tox to run several python tools and we follow black's recommendations:
; https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html
[tox]
; The 1st envlist runs tests and checks if everything is ok (without making any change).
; The 2nd envlist makes sure everything is ok by applying all the required changes.
; The 3rd envlist is work in progress: pylint and mypy are not passing yet.
envlist = black-check, isort-check, flake8
;envlist = black, isort, flake8
;envlist = pylint, mypy
[testenv]
deps = -rrequirements/requirements-dev.txt
; comment the following line to reuse the same tox environment (faster)
recreate = True
[testenv:build]
skip_install = true
deps =
wheel
setuptools
commands =
python setup.py sdist
[testenv:black]
commands = black GPErks
[testenv:black-check]
commands = black --check --diff GPErks
[isort]
profile = black
; ref: https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#isort
[testenv:isort]
commands =
isort GPErks
[testenv:isort-check]
commands =
isort --check-only --diff GPErks
[flake8]
max-line-length = 88
extend-ignore = E203,E741
; ref: https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#flake8
[testenv:flake8]
commands =
flake8 GPErks
[pylint]
max-line-length = 88
; ref: https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#pylint
[testenv:pylint]
commands =
pylint GPErks
[mypy]
follow_imports = normal
strict = True
;install_types = True
;non_interactive = True
[testenv:mypy]
commands =
mypy GPErks