-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
94 lines (80 loc) · 2.15 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
[tox]
envlist = py{37,39,311}, coverage, style
skip_missing_interpreters = true
[testenv]
passenv =
CI
GITHUB_*
HOME
setenv = COVERAGE_FILE={toxworkdir}/.coverage.{envname}
usedevelop = True
deps = -rrequirements.txt
-rtests/requirements.txt
commands = pytest {posargs:-vv --cov=src/ --cov-report=xml --junit-xml="{envdir}/junit.xml tests/"}
[testenv:coverage]
setenv = COVERAGE_FILE={toxworkdir}/.coverage
skip_install = True
deps = coverage
commands = coverage combine
coverage report -m
coverage xml
coverage html
[testenv:black]
skip_install = True
deps = black
commands = black {posargs:-l140 src/ tests/ setup.py}
[testenv:docs]
skip_install = True
deps = check-manifest
readme-renderer
commands = check-manifest
python setup.py check --strict --restructuredtext
[testenv:pex]
changedir = {envdir}
deps = pickley
commands = pickley -ppex package {toxinidir} --sanity-check=--version --no-compile
[testenv:nuitka]
basepython = python3.9
deps = nuitka
-rrequirements.txt
-rtests/requirements.txt
commands = python -mnuitka --standalone --output-dir=.tox/nuitka/ src/gdot
[testenv:pyinstaller]
usedevelop = True
deps = PyInstaller
-rrequirements.txt
-rtests/requirements.txt
commands = pyinstaller --clean -Fy --distpath .tox/pyinstaller/dist --specpath .tox/pyinstaller -n gdot src/gdot/__main__.py
[testenv:style]
skip_install = True
deps = flake8
flake8-import-order
commands = flake8 {posargs:src/ tests/ setup.py}
[testenv:security]
skip_install = True
deps = bandit
commands = bandit {posargs:-r src/}
[testenv:venv]
envdir = .venv
usedevelop = True
deps = -rrequirements.txt
-rtests/requirements.txt
commands = {posargs:python --version}
[check-manifest]
ignore = tests/**
docs/*
requirements.txt
tox.ini
[coverage:xml]
output = .tox/test-reports/coverage.xml
[coverage:html]
directory = .tox/test-reports/htmlcov
[pytest]
cache_dir = .tox/pytest_cache
[flake8]
max-line-length = 140
max-complexity = 24
show-source = True
# See https://github.com/PyCQA/flake8-import-order
import-order-style = edited
application-import-names = gdot