-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
50 lines (45 loc) · 894 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
[tox]
skip_missing_interpreters = true
envlist =
lint,
py310,
mypy,
skipsdist = true
[base]
[testenv:lint]
basepython = python3
skip_install = true
deps =
black
isort
passenv =
PIP_CACHE_DIR
commands =
black --check --diff --skip-string-normalization -l 79 gen.py setup.py pynetbox-stubs
isort --check-only --df --profile black gen.py setup.py pynetbox-stubs
[testenv:mypy]
deps =
mypy
pynetbox
passenv =
PIP_CACHE_DIR
setenv =
commands = mypy --config-file mypy.ini {posargs: gen.py setup.py}
[testenv:gen]
basepython = python3
deps =
-rrequirements.txt
passenv =
PIP_CACHE_DIR
commands =
python gen.py
[testenv:fixlint]
basepython = python3
deps =
black
isort
passenv =
PIP_CACHE_DIR
commands =
black --skip-string-normalization -l 79 gen.py setup.py pynetbox-stubs
isort --profile black gen.py setup.py pynetbox-stubs