-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
44 lines (41 loc) · 1.01 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
[tox]
envlist = py37,py38,py39,py310,py311
skip_missing_interpreters = true
[testenv]
allowlist_externals = rm
commands=
; Force packaging even if setup.{py,cfg} haven't changed
rm -rf ./yala.egg-info/
pip install -U .[all,black,flake8]
python setup.py test
[testenv:lint]
; Code checks and linters are run in the latest stable Python version only.
commands=
; Force packaging even if setup.{py,cfg} haven't changed
rm -rf ./yala.egg-info/
pip install -U .[all,black,flake8,dev]
coverage run setup.py test
yala setup.py yala tests
; Commented-out code
eradicate -r yala tests
; Security issues
bandit --skip B404 -r yala
; Security issues in dependencies
safety check
rstcheck README.rst
coverage report
[testenv:upload]
depends = lint
passenv=
CODACY_PROJECT_TOKEN
CODECOV_TOKEN
COVERALLS_REPO_TOKEN
deps=
coveralls
codecov
codacy-coverage
commands=
coverage xml
coveralls
codecov
python-codacy-coverage -r coverage.xml