forked from tyo-nu/MINE-Database
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
68 lines (62 loc) · 1.29 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
57
58
59
60
61
62
63
64
65
66
67
68
[tox]
envlist = flake8, black, isort, safety, py38
; Set up tests and coverage
; [testenv]
; skip_install = True
; allowlist_externals =
; pytest
; pytest-cov
; commands =
; pytest "{toxinidir}"/tests --cov-report xml:cov.xml --cov minedatabase {posargs:}
; sitepackages = True
; Check formatting
[testenv:black]
skip_install = True
allowlist_externals =
black
commands=
black --check --diff "{toxinidir}"/minedatabase "{toxinidir}"/tests
; Check imports
[testenv:isort]
skip_install = True
allowlist_externals =
isort
commands=
isort --check --diff "{toxinidir}"/minedatabase "{toxinidir}"/tests
; Check lint
[testenv:flake8]
skip_install = True
allowlist_externals =
flake8
flake8-docstrings
flake8-bugbear
sitepackages = True
commands=
flake8 "{toxinidir}"/minedatabase "{toxinidir}"/tests
; Check packages for safety
[testenv:safety]
allowlist_externals =
safety
commands=
safety check
; Settings
[flake8]
max-line-length = 80
exclude =
__init__.py
_version.py
; The following conflict with `black` which is the more pedantic.
select = B950
ignore =
E203
W503
D202
[isort]
skip = __init__.py
line_length = 80
indent = 4
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
lines_after_imports = 2