-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
executable file
·49 lines (44 loc) · 1.1 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
[tox]
# toxworkdir = /data1/DATA/tox/ruamel.yaml
envlist = cs,py311,py310,py39,py38,py37,py312
[testenv]
allowlist_externals = /bin/bash
install_command = pip install --disable-pip-version-check {opts} {packages}
commands =
/bin/bash -c 'pytest {posargs} _test/test_*.py'
deps =
pytest
setuptools
[testenv:cs]
basepython = python3.11
deps =
flake8
flake8-bugbear;python_version>="3.11"
flake8-2020==1.8.1
flake8-commas==2.1.0
flake8-comprehensions==3.14.0
flake8-length==0.3.1
flake8-logging-format==0.9.0
commands =
flake8 []{posargs}
[testenv:pep8]
basepython = python3.11
deps =
flake8
flake8-bugbear;python_version>="3.11"
flake8-2020==1.8.1
flake8-commas==2.1.0
flake8-comprehensions==3.14.0
flake8-length==0.3.1
flake8-logging-format==0.9.0
commands =
flake8 []{posargs}
[flake8]
show-source = True
max-line-length = 95
ignore = W503,F405,E203,C408
exclude = _test/lib,branch_default,.hg,.git,.tox,dist,.cache,__pycache__,ruamel.zip2tar.egg-info
[pytest]
filterwarnings =
error::DeprecationWarning
error::PendingDeprecationWarning