-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
51 lines (46 loc) · 1.18 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
[tox]
envlist = py{38,39,310,311,py3}-{pycrypto,pycryptodome,pycryptodomex,cryptography},lint,docs
[testenv]
usedevelop = True
deps =
-r requirements/dev.txt
pycrypto: -r requirements/pycrypto.txt
pycryptodome: -r requirements/pycryptodome.txt
pycryptodomex: -r requirements/pycryptodomex.txt
cryptography: -r requirements/cryptography.txt
commands =
pytest -q -x --doctest-modules --cov-report term-missing \
--cov wheezy.security
[testenv:pypy3-cryptography]
setenv =
CRYPTOGRAPHY_DONT_BUILD_RUST=1
[testenv:lint]
basepython = python3
skip_install = True
deps =
autoflake
black
flake8
flake8-bugbear
flake8-import-order
flake8-mutable
isort
pep8-naming
commands =
autoflake --in-place --remove-unused-variables --remove-all-unused-imports \
--recursive src/ setup.py
isort --profile black --combine-as --case-sensitive src/ setup.py
black -ql79 src/ setup.py
flake8 doc src setup.py
[testenv:docs]
deps = -r requirements/docs.txt
commands = sphinx-build -a -b html doc/ doc/_build/
[flake8]
show-source = True
max-complexity = 12
# Codes: https://www.flake8rules.com/
ignore =
# whitespace before ':'
E203
# line break before binary operator
W503