/
tox.ini
48 lines (39 loc) · 1.33 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
[tox]
envlist = py311
[testenv]
description = Run basic usage tests
# Change directory so that we make sure we are using the package-installed version
changedir = {envtmpdir}
deps = -rrequirements.txt
commands =
pytest --nbsmoke-run {toxinidir} {posargs}
[pytest]
addopts = -ra -v -n 2 --junitxml=junit/test-results.xml --color=no --cov=atomica --cov-report=xml --cov-report=html
junit_family=xunit1
nbsmoke_cell_timeout = 600
console_output_style = count
testpaths = tests docs/examples docs/tutorial
python_files = test_tox_*.py
norecursedirs = atomica_apps .ipynb_checkpoints
# Enable headless matplotlib testing and suppress deprecation warnings
env =
MPLBACKEND = agg
# Ignore deprecation warnings as not relevant for testing purposes
filterwarnings =
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
ignore::UserWarning:.*openpyxl
[flake8]
# Use these commands to call autopep8 to tidy up whitespace/trivial formatting
#
# autopep8 --in-place -j 0 --recursive atomica
# autopep8 --in-place -j 0 --recursive tests
#
# Alternatively, use Black via
#
# pip install black
# black -l 999 . # Use `-l 999` to more or less ignore line length
exclude = .git,__pycache__,docs,build,dist,junit,.tox
ignore = E501,F401,E401,E402,C901,F403
# flake8 does not check with E203 properly with list slices
extend-ignore = E203