forked from feder-observatory/stellarphot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
58 lines (55 loc) · 1.36 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
[tox]
envlist =
py{3.10,3.11,3.12}-test
coverage
table_rep
build_docs
pycodestyle
lint
requires =
setuptools >= 30.3.0
pip >= 19.3.1
isolated_build = true
package_name = stellarphot
[testenv]
passenv =
HOME
WINDIR
LC_ALL
LC_CTYPE
CC
CFLAGS
changedir =
test: .tmp/{envname}
build_docs: docs
description =
test: run tests with pytest
build_docs: invoke sphinx-build to build the HTML docs
dev: run tests with astropy dev version
coverage: run tests with coverage report
table_rep: test that table representations of models work on package import
deps =
numpy200: numpy==2.0.*
batman: batman-package
extras =
test: test
build_docs: docs
table_rep: test
commands =
test: pytest --pyargs {[tox]package_name} {toxinidir}/docs {posargs}
build_docs: sphinx-build -W -b html . _build/html {posargs}
table_rep: pytest --pyargs stellarphot/tests/test_core_minimal_imports.py
[testenv:coverage]
passenv = {[testenv]passenv}
deps =
coverage: pytest-cov
extras =
coverage: test
commands =
coverage: pytest --cov={[tox]package_name} --cov-config={toxinidir}/pyproject.toml --cov-report xml:{toxinidir}/coverage.xml --cov-report term-missing \
{posargs}
[testenv:lint]
skip_install = true
description = Run lint checks with ruff
deps = ruff
commands = ruff check {toxinidir}