forked from fetchai/cosmpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
147 lines (128 loc) · 3.19 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
[tox]
envlist = py39
[testenv:docs]
skipsdist = True
skip_install = True
deps =
markdown==3.3.6
mkdocs==1.3
mkdocs-material==8.2.8
commands = pip3 install git+https://github.com/squidfunk/mkdocs-material.git#egg=mkdocs-material
mkdocs build --clean
[testenv:docs-serve]
skipsdist = True
skip_install = True
deps =
markdown==3.3.6
mkdocs==1.3
mkdocs-material==8.2.8
commands = pip3 install git+https://github.com/squidfunk/mkdocs-material.git#egg=mkdocs-material
mkdocs build --clean
python -c 'print("###### Starting local server. Press Control+C to stop server ######")'
mkdocs serve -a localhost:8080
[testenv:flake8]
skipsdist = True
skip_install = True
deps =
flake8==3.9.2
flake8-copyright==0.2.2
darglint==1.8.0
commands = flake8 cosmpy tests examples setup.py
[testenv:black-check]
skipsdist = True
skip_install = True
deps =
black==22.3
commands = black --check --verbose cosmpy tests examples setup.py --exclude protos
[testenv:black]
skipsdist = True
skip_install = True
deps =
black==22.3
commands = black cosmpy tests examples setup.py --exclude protos
[testenv:isort-check]
skipsdist = True
skip_install = True
deps =
isort==5.9.3
commands = isort --check-only --verbose cosmpy tests examples setup.py
[testenv:isort]
skipsdist = True
skip_install = True
deps =
isort==5.9.3
commands = isort cosmpy tests examples setup.py
[testenv:vulture]
skipsdist = True
skip_install = True
deps =
vulture==2.3
commands = vulture cosmpy tests examples setup.py --exclude "*_pb2.py,*_pb2_grpc.py" --min-confidence 100
[testenv:bandit]
skipsdist = True
skip_install = True
deps =
bandit==1.7.0
commands =
bandit -r cosmpy tests --skip B101
bandit -r examples --skip B101,B105
[testenv:safety]
skipsdist = True
skip_install = True
deps =
safety==1.10.3
commands = safety check -i 41002
[testenv:mypy]
skipsdist = True
skip_install = True
deps =
mypy==0.910
commands = mypy cosmpy tests examples setup.py
[testenv:pylint]
skipsdist = True
skip_install = True
deps =
pylint==2.9.6
-rrequirements.txt
commands = pylint cosmpy tests examples setup.py
[testenv:test]
skipsdist = True
skip_install = True
deps =
-rrequirements-dev.txt
commands = coverage run -m pytest tests --doctest-modules --ignore tests/vulture_whitelist.py
[testenv:test-unit]
skipsdist = True
skip_install = True
deps =
-rrequirements-dev.txt
commands = coverage run -m pytest tests --doctest-modules --ignore tests/vulture_whitelist.py -m "not integration"
[testenv:test-integration]
skipsdist = True
skip_install = True
deps =
-rrequirements-dev.txt
commands = coverage run -m pytest tests --doctest-modules --ignore tests/vulture_whitelist.py -m "integration"
[testenv:coverage-report]
skipsdist = True
skip_install = True
deps =
coverage==5.5
commands = coverage report -m -i
[testenv:liccheck]
skipsdist = True
skip_install = True
deps =
liccheck==0.6.2
-rrequirements.txt
commands = liccheck -s strategy.ini -r requirements.txt -l PARANOID
[testenv:copyright-check]
skipsdist = True
skip_install = True
commands = python scripts/check_copyright.py
[testenv:check-manifest]
skipsdist = True
skip_install = True
deps =
check-manifest==0.46
commands = check-manifest