-
Notifications
You must be signed in to change notification settings - Fork 315
/
tox.ini
47 lines (43 loc) · 801 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
47
[tox]
min_version = 4.0
envlist = pep8, py38, py39, py10, py11, py12
skip_missing_interpreters = True
[testenv]
allowlist_externals = bash
commands =
pytest
bash tests/test.sh
genpac -v
deps =
pytest
pytest-cov
pytest-randomly
[testenv:pep8]
basepython = python
commands = flake8
deps = flake8
[pytest]
testpaths = tests
python_files = test_*.py
addopts=-s -v --cov=genpac --cov-report=term --cov-report=html
# -p no:randomly
[flake8]
# E402: module level import not at top of file
# F401: imported but unused
# F841: variable assigned but never used
ignore = E501
exclude =
genpac/publicsuffixlist,
genpac/pysocks,
tests,
tmp,
.tox,
.git,
__pycache__,
build,
dist,
*.pyc,
*.egg-info,
.cache,
.eggs
# max-complexity = 10