forked from quipucords/qpc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
41 lines (37 loc) · 951 Bytes
/
tox.ini
File metadata and controls
41 lines (37 loc) · 951 Bytes
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
[tox]
envlist = py34,py35,py36,lint
skipsdist = True
[flake8]
; D106 = Missing docstring in public nested class
; D212 = Multi-line docstring summary should start at the first line
; W504 = line break after binary operator
; D203 = 1 blank line required before class docstring
ignore = D106,D212,D203,W504
max-line-length = 120
exclude =
**/__init__.py
**/.tox/*.py
import-order-style = cryptography
[testenv]
passenv = CI TRAVIS TRAVIS_*
deps =
codecov
commands =
pip install -r dev-requirements.txt
coverage run -m unittest discover {toxinidir}/qpc/ -v
coverage report --show-missing
[testenv:lint]
deps =
flake8 == 3.7.7
flake8-docstrings
flake8-import-order
flake8-quotes
pipenv
pylint == 2.3.0
pylint-plugin-utils == 0.5
setenv =
PYTHONPATH={toxinidir}/qpc
commands =
pip install -r dev-requirements.txt
flake8 qpc
pylint qpc --disable=duplicate-code,wrong-import-order,useless-import-alias,unnecessary-pass