forked from joke2k/faker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
80 lines (68 loc) · 1.47 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
[tox]
envlist=py{37,38,39,310,py3},32bit,alpine,flake8,checkmanifest,isort,mypy,doc8
skip_missing_interpreters = true
[testenv]
deps =
coverage>=5.2
freezegun<0.4
pytest>=6.0.1
ukpostcodeparser>=1.1.1
validators>=0.13.0
sphinx>=2.4,<3.0
Pillow
commands =
coverage run --source=faker -m pytest
coverage run --source=faker -a -m pytest --exclusive-faker-session tests/pytest/session_overrides
coverage report
[testenv:flake8]
basepython = python
deps =
flake8>=4.0.0
flake8-comprehensions
commands =
flake8 --extend-ignore=E203 faker tests
[testenv:checkmanifest]
basepython = python
deps =
check-manifest
commands =
check-manifest
[testenv:isort]
deps =
isort
commands =
{envpython} -m isort --check-only --diff .
[testenv:mypy]
basepython = python
deps =
mypy==0.910
commands =
mypy --install-types --non-interactive --config mypy.ini faker
[testenv:black]
deps = black==23.1.0
commands =
{envpython} -m black --check --line-length 120 .
[testenv:doc8]
deps = doc8
commands =
{envpython} -m doc8
[testenv:32bit]
basepython = python
passenv = TEST_32BIT
commands = ./build32bit.sh
allowlist_externals = ./build32bit.sh
[testenv:alpine]
basepython = python
passenv = TEST_ALPINE
commands = ./build-alpine.sh
allowlist_externals = ./build-alpine.sh
[flake8]
max-line-length = 120
[check-manifest]
ignore =
faker/sphinx
faker/sphinx/*
tests/sphinx
tests/sphinx/*
[coverage:run]
relative_files = True