forked from sassoftware/python-keyutils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
93 lines (86 loc) · 1.74 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[tox]
envlist = py{38,39,310,311,312}
skip_missing_interpreters = True
[gh-actions]
python =
3.8: py38, build, docs
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[testenv]
basepython =
py38: python3.8
py39: python3.9
py310: python3.10
py311: python3.11
py312: python3.12
{lint,radon}: {env:TOXPYTHON:python3}
[testenv:{py38,py39,py310,py311,py312}]
deps =
cython
coverage
pytest
pytest-cov
commands_pre =
coverage erase
commands =
python setup.py build_ext --inplace
py.test --cov --cov-report=term-missing --cov-append --cov-config=.coveragerc -v test/ {posargs}
commands_post =
coverage report
coverage html
coverage xml
[testenv:lint]
deps =
cython
flake8>=3
; flake8-docstrings
flake8-bugbear
pygments
isort
commands =
python setup.py build_ext --inplace
flake8 {posargs:keyutils test setup.py}
isort --verbose --check-only --diff keyutils test setup.py
[testenv:radon]
deps =
cython
radon
commands =
radon cc -s --total-average --no-assert -nb keyutils/
radon mi -m -s keyutils/
[flake8]
max_line_length = 180
hang-closing = true
ignore =
W293
W503
D412
D105
W191
E133
per-file-ignores =
setup.py:E501
tests/*:D102,D103,D100
docstring-convention = numpy
[isort]
profile=black
line_length = 88
multi_line_output = 3
include_trailing_comma = true
lines_after_imports = 2
sections=FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
#known_future_library=future,pies
extra_standard_library=typing_extensions
known_first_party =
keyutils
usage
conftest
tests
test
# you should add here your known thirdparties, it will facilitate
# the job to isort
known_third_party =
hypothesis
pytest