This repository has been archived by the owner on Mar 9, 2024. It is now read-only.
forked from pyatom/pyatom
-
Notifications
You must be signed in to change notification settings - Fork 13
/
tox.ini
61 lines (52 loc) · 1.52 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
50
51
52
53
54
55
56
57
58
59
60
61
[tox]
isolated_build = true
envlist = py3,pre-commit
[testenv]
description = run the tests with pytest under {basepython}
passenv = TOXENV CI TRAVIS TRAVIS_* CODECOV_*
deps =
codecov>=1.4.0
pytest
pytest-cov
commands =
pytest --junitxml="{toxworkdir}/report.xml" --cov {envsitepackagesdir}/atomacos/ tests/
codecov -e TOXENV
[testenv:doctest]
deps = pytest
commands = pytest --doctest-modules atomacos/
[testenv:pre-commit]
description = run pre-commit hooks
skip_install = true
deps = pre-commit
commands = pre-commit run -a
[testenv:docs]
deps =
sphinx
m2r2
whitelist_externals = touch
commands =
sphinx-apidoc -fM -o docs/_generated/api/ atomacos/ tests/
sphinx-build -d "{toxworkdir}/docs_doctree" docs "{toxworkdir}/docs_out" --color -bhtml {posargs}
touch "{toxworkdir}/docs_out/.nojekyll"
python -c 'import pathlib; print("documentation available under file://\{0\}".format(pathlib.Path(r"{toxworkdir}") / "docs_out" / "index.html"))'
[testenv:publish]
description = publish the package
skip_install = true
passenv =
FLIT_INDEX_URL
FLIT_USERNAME
FLIT_PASSWORD
deps = flit
commands = flit publish
[testenv:checkpermissions]
commands =
python -c 'from ApplicationServices import AXIsProcessTrustedWithOptions, kAXTrustedCheckOptionPrompt; AXIsProcessTrustedWithOptions(\{kAXTrustedCheckOptionPrompt: True\})'
[flake8]
ignore = E203, E266, E501, W503
max-line-length = 80
max-complexity = 18
select = B,C,E,F,W,T4,B9
[pytest]
addopts = -p no:warnings
[coverage:report]
show_missing=true