forked from Instagram/Fixit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
46 lines (41 loc) · 826 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
[tox]
envlist = py36, py37, py38, lint, docs
[testenv]
deps =
-rrequirements.txt
-rrequirements-dev.txt
commands =
python -m unittest {posargs}
[testenv:lint]
deps =
-rrequirements.txt
-rrequirements-dev.txt
commands =
flake8 {posargs}
isort --check-only {posargs:.}
black --check {posargs:.}
python -m fixit.cli.run_rules {posargs:fixit}
[testenv:docs]
deps =
-rrequirements.txt
-rrequirements-dev.txt
commands =
sphinx-build {posargs:docs/source/ docs/build/}
[testenv:autofix]
deps =
-rrequirements.txt
-rrequirements-dev.txt
commands =
isort -q {posargs:.}
black {posargs:.}
[testenv:coverage]
deps =
-rrequirements.txt
-rrequirements-dev.txt
passenv =
CI
CIRCLECI
CIRCLE_*
commands =
coverage run setup.py test
coverage xml