summaryrefslogtreecommitdiff
path: root/tox.ini
blob: 4814eb585da677c6069355329d79a29f74915bee (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
45
46
47
48
49
50
[tox]
isolated_build = True

[testenv]
extras =
    tests
deps =
    coverage
passenv =
    RUSTUP_HOME
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

[check-manifest]
ignore =
    tests/reference/*