summaryrefslogtreecommitdiff
path: root/tox.ini
blob: 36ac09fee97f2a64affcc0fd8015c05b8d33d470 (plain)
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
[tox]
isolated_build = True

[testenv]
extras =
    tests
deps =
    coverage
commands =
    coverage run -m pytest --strict-markers {posargs}
    coverage combine
    coverage report -m --fail-under 100

[testenv:pep8]
deps =
    black
    flake8
    flake8-import-order
    pep8-naming
commands =
    flake8 .
    black --check .

[testenv:mypy]
deps =
    mypy
commands =
    mypy src/bcrypt

[testenv:packaging]
deps =
    setuptools-rust
    check-manifest
    readme_renderer
commands =
    check-manifest
    python setup.py check --metadata --restructuredtext --strict


[flake8]
ignore = E203,E211,E501,W503,W504
exclude = .tox,*.egg
select = E,W,F,N,I
application-import-names = bcrypt,tests