forked from capn-freako/PyBERT
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
61 lines (56 loc) · 1.19 KB
/
Copy pathtox.ini
File metadata and controls
61 lines (56 loc) · 1.19 KB
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
[tox]
envlist = py38, py39, py310, pylint, format, flake8, docs
skip_missing_interpreters = true
isolated_build = true
[testenv]
deps =
pytest
pytest-xdist
pytest-cov
conda_deps =
# numpy==1.23.3 # Version number required! Conda ignores `pyproject.toml`.
conda_channels =
defaults
conda-forge
conda_install_args =
--force-reinstall
--override-channels
conda_create_args =
--override-channels
commands =
py.test --basetemp={envtmpdir} -vv --cov=pybert \
--cov-report=html --cov-report=term-missing tests
[testenv:format]
skip_install = true
deps =
black
isort
autoflake
docformatter[tomli]
commands =
autoflake --in-place --remove-all-unused-imports --expand-star-imports \
--ignore-init-module-imports --recursive src/ tests/
docformatter --in-place --recursive src/ tests/
isort src/ tests/
black src/ tests/
[testenv:lint]
deps =
pylint
commands =
pylint src/
[testenv:type-check]
setenv =
MYPYPATH = {toxinidir}
deps =
mypy
types-PyYAML
commands = mypy -p pybert
[testenv:docs]
deps =
numpy
Cython
sphinx
m2r2
changedir = docs
commands =
sphinx-build -j auto -b html source/ build/