forked from PyGithub/PyGithub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
49 lines (42 loc) · 925 Bytes
/
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
[tox]
envlist =
py{35,36,37,38},
flake8,
isort,
black
[testenv]
deps = -rtest-requirements.txt
commands = pytest --cov=github {posargs}
[testenv:flake8]
basepython = python3.6
skip_install = true
deps = flake8
commands = flake8 github tests scripts setup.py
[testenv:isort]
basepython = python3.6
skip_install = true
deps = isort
commands = isort --check -rc github tests scripts setup.py
[testenv:black]
basepython = python3.6
skip_install = true
deps = black
commands = black --check --diff github tests scripts setup.py
[testenv:format]
basepython = python3.6
skip_install = true
deps =
black
isort
commands =
isort -rc github tests scripts setup.py
black github tests scripts setup.py
[testenv:docs]
basepython = python3.6
skip_install = true
deps = -rrequirements.txt
commands = sphinx-build doc build
[flake8]
max-line-length = 88
select = C,E,F,W
ignore = E203, E266, E501, W503