-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
56 lines (49 loc) · 954 Bytes
/
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
# This file can be used to customize tox tests as well as other test frameworks like flake8 and mypy
[tox]
requires =
tox>=4.2
env_list =
format
3.13
3.12
3.11
3.10
3.9
lint
skip_missing_interpreters = true
[testenv]
description = run the tests with pytest under {base_python}
package = wheel
pass_env =
TAP_CIRCLE_CI_*
wheel_build_env = .pkg
deps =
pytest
commands =
python -m pytest {posargs}
[testenv:format]
description = format the code
deps =
ruff
commands =
ruff check --fix tap_circle_ci/
ruff format tap_circle_ci/
[testenv:lint]
description = lint the code
deps =
ruff
commands =
ruff check tap_circle_ci/
ruff format --check tap_circle_ci/
[testenv:typing]
description = run type check on code base
deps =
mypy
commands =
mypy tap_circle_ci --exclude='tests'
[flake8]
ignore = W503
max-line-length = 88
max-complexity = 10
[pydocstyle]
ignore = D105,D203,D213