-
Notifications
You must be signed in to change notification settings - Fork 15
/
tox.ini
59 lines (55 loc) · 1.35 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
[tox]
envlist =
py{36,37,38,39,310,311}-test{,-all,-dev,-novis,-cov}
build_docs
codestyle
requires =
setuptools >= 30.3.0
pip >= 19.3.1
mock
isolated_build = true
indexserver =
NRAO = https://casa-pip.nrao.edu/repository/pypi-group/simple
[testenv]
passenv =
HOME
DISPLAY
LC_ALL
LC_CTYPE
ON_TRAVIS
CASASITECONFIG
changedir =
.tmp/{envname}
description =
run tests with pytest
deps =
mock
dev: git+https://github.com/radio-astro-tools/pvextractor#egg=pvextractor
dev: git+https://github.com/radio-astro-tools/radio-beam#egg=radio-beam
dev: git+https://github.com/astropy/astropy#egg=astropy
dev: git+https://github.com/astropy/reproject#egg=reproject
casa: casatools>=6.4
casa: casatasks>=6.4
casa: casadata
extras =
test
all: all
commands =
pip freeze
!cov: pytest --pyargs uvcombine {toxinidir}/docs {posargs}
cov: pytest --pyargs uvcombine {toxinidir}/docs --cov uvcombine --cov-config={toxinidir}/setup.cfg {posargs}
cov: coverage xml -o {toxinidir}/coverage.xml
[testenv:build_docs]
changedir =
docs
description =
invoke sphinx-build to build the HTML docs
extras =
docs
commands =
sphinx-build -W -b html . _build/html {posargs}
[testenv:codestyle]
deps = flake8
skip_install = true
commands =
flake8 --max-line-length=100 uvcombine