forked from Instagram/LibCST
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
85 lines (76 loc) · 1.58 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
[tox]
envlist = py36, py37, py38, py39, 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 -rc {posargs:.}
black --check {posargs:libcst/}
[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 =
flake8 {posargs}
isort -y -q -rc {posargs:.}
black {posargs:libcst/}
[testenv:coverage]
deps =
-rrequirements.txt
-rrequirements-dev.txt
passenv =
CI
CIRCLECI
CIRCLE_*
commands =
coverage run setup.py test
codecov
[testenv:fuzz36]
basepython = python3.6
deps =
-rrequirements.txt
-rrequirements-dev.txt
setenv =
HYPOTHESIS = 1
commands =
python3.6 -m unittest libcst/tests/test_fuzz.py
[testenv:fuzz37]
basepython = python3.7
deps =
-rrequirements.txt
-rrequirements-dev.txt
setenv =
HYPOTHESIS = 1
commands =
python3.7 -m unittest libcst/tests/test_fuzz.py
[testenv:fuzz38]
basepython = python3.8
deps =
-rrequirements.txt
-rrequirements-dev.txt
setenv =
HYPOTHESIS = 1
commands =
python3.8 -m unittest libcst/tests/test_fuzz.py
[testenv:codegen]
deps =
-rrequirements.txt
-rrequirements-dev.txt
commands =
python3 -m libcst.codegen.generate visitors
python3 -m libcst.codegen.generate return_types
python3 -m libcst.codegen.generate matchers