-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
43 lines (37 loc) · 914 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
[flake8]
extend-ignore = E501,W503,W504
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 undefined names in settings and paypal processor
per-file-ignores =
src/aaactl/settings/__init__.py:F821
src/aaactl/settings/dev.py:F821
src/billing/payment_processors/paypal.py:F821
[tox]
skipsdist = True
envlist =
py36
[testenv]
setenv =
PYTHONDONTWRITEBYTECODE=1
PYTHONWARNINGS=once
PIPENV_IGNORE_VIRTUALENVS=1
deps =
pipenv
# for facs
passenv =
HOME
USER
commands =
pipenv install --dev --ignore-pipfile
pipenv run pytest -v -rA --cov-report term-missing --cov=peeringdb_server tests/