-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
37 lines (32 loc) · 862 Bytes
/
Copy pathtox.ini
File metadata and controls
37 lines (32 loc) · 862 Bytes
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
[tox]
envlist = py310, py311, flake8, type
[travis]
python =
3.10: py310
3.11: py311
[testenv:flake8]
basepython = python
deps = flake8
commands = flake8 eurocodedesign tests
[testenv]
setenv =
PYTHONPATH = '{toxinidir}'
COVERAGE_FILE = .coverage.{envname}
deps =
-rrequirements_dev.txt
; If you want to make tox run the tests with the same versions, create a
; requirements.txt with the pinned versions and uncomment the following line:
; -r{toxinidir}/requirements.txt
commands =
pip install -U pip
pytest --basetemp='{envtmpdir}' --cov-report term-missing --cov eurocodedesign tests/
[testenv:type]
description = type check eurocodedesign package
deps =
-rrequirements_dev.txt
passenv =
TERM
MYPY_FORCE_COLOR
MYPY_FORCE_TERMINAL_WIDTH
commands =
python -m mypy --config-file mypy.ini -p eurocodedesign