This repository has been archived by the owner on Mar 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathtox.ini
56 lines (53 loc) · 1.53 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
[tox]
envlist = py36, lint
skipsdist = True
[flake8]
; D106 = Missing docstring in public nested class
; D212 = Multi-line docstring summary should start at the first line
ignore = D106,D212
max-complexity = 10
max-line-length = 120
exclude =
**/__init__.py
**/manage.py
**/settings/*.py
**/apps.py
**/migrations/*.py
**/.tox/*.py
import-order-style = pycharm
application-import-names = config, api
[testenv]
passenv = CI TRAVIS TRAVIS_*
setenv =
DATABASE_SERVICE_NAME={env:DATABASE_SERVICE_NAME:POSTGRES_SQL}
DATABASE_ENGINE={env:DATABASE_ENGINE:postgresql}
DATABASE_NAME={env:DATABASE_NAME:yupana-test}
POSTGRES_SQL_SERVICE_HOST={env:POSTGRES_SQL_SERVICE_HOST:localhost}
POSTGRES_SQL_SERVICE_PORT={env:POSTGRES_SQL_SERVICE_PORT:15432}
DATABASE_USER={env:DATABASE_USER:postgres}
DATABASE_PASSWORD={env:DATABASE_PASSWORD:postgres}
deps =
pipenv
codecov
commands =
pipenv install --dev
coverage run {toxinidir}/yupana/manage.py test -v 2 {posargs: yupana}
coverage report --show-missing
[testenv:lint]
deps =
flake8 == 3.7.7
pydocstyle == 3.0.0
flake8-docstrings
flake8-import-order
flake8-quotes
pipenv
pylint == 2.5.3
pylint-plugin-utils == 0.5
pylint-django == 2.0.6
setenv =
DJANGO_SETTINGS_MODULE=config.settings.test
PYTHONPATH={toxinidir}/yupana
commands =
flake8 yupana
pipenv install --dev --ignore-pipfile
pylint --load-plugins=pylint_django --disable=duplicate-code,wrong-import-order,useless-import-alias,unnecessary-pass yupana/api yupana/config yupana/processor --ignore=migrations