forked from 20c/vaping
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
45 lines (36 loc) · 1.09 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
[flake8]
extend-ignore = E203, E266, E501
exclude =
.git,
.venv,
.tox,
__pycache__,
build,
dist
# line length is intentionally set to 80 here because black uses Bugbear
# See https://github.com/psf/black/blob/master/docs/the_black_code_style.md#line-length for more details
max-line-length = 80
max-complexity = 18
select = B,C,E,F,W,T4,B9
# ignore unused import in __init__, used to pull into namespace
per-file-ignores =
src/ctl/plugins/__init__.py:F401
src/ctl/plugins/all.py:F401
src/ctl/plugins/all.py:F403
[tox]
envlist = py{37,38,39,310}
isolated_build = True
[tox:.package]
# note tox will use the same python version as under what tox is installed to package
# so unless this is python 3 you can require a given python version for the packaging
# environment via the basepython key
basepython = python3
[testenv]
whitelist_externals = poetry
commands =
pip install pip -U
poetry install -v --extras all
poetry run pytest tests/ --cov="{envsitepackagesdir}/vaping" --cov-report=xml
codecov -e TOXENV
[pytest]
norecursedirs = .Ctl .tox data gen