-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
112 lines (108 loc) · 2.71 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
[tox]
envlist =
py{310,311,312,313}-{noop,scorpio}
codecov
check
docs
requires = tox-conda
isolated_build = true
[testenv]
args_are_paths = false
whitelist_externals =
which
passenv =
DRAGONS_TEST
DRAGONS_TEST_OUTPUTS
GITHUB_WORKFLOW
HOME
LANG
LC_ALL
MPLBACKEND
TMPDIR
conda_deps =
asdf>=2.7,!=2.10.0
astropy>=4.3,!=5.3.0,!=6.1.5,!=6.1.6
astroquery>=0.4
astroscrappy>=1.1
bokeh>=3.0
bottleneck>=1.2
coverage
cython>=0.29
docutils>=0.15
future>=0.17
gwcs>=0.15
holoviews>=1.14
jinja2>=3.0
jsonschema>=3.0
matplotlib>=3.1
numpy>=1.17,<2.0.0
objgraph>=3.5
pandas
psutil>=5.6 # only used by adcc?
pyerfa>=1.7
pytest>=5.2
python-dateutil>=2.5.3
requests>=2.22
scikit-image>=0.21
scipy>=1.3
sextractor>=2.8.6
specutils>=1.1
sqlalchemy>=1.3,<2.0.0a0 # new v2 API breaks calmgr
conda_channels =
http://astroconda.gemini.edu/public
conda-forge
conda_create_args =
--override-channels
--experimental=lock
conda_install_args =
--override-channels
--experimental=lock
extras =
test
docs: docs
deps =
git+https://github.com/GeminiDRSoftware/GeminiObsDB.git@release/1.0.x
git+https://github.com/GeminiDRSoftware/GeminiCalMgr.git@release/1.1.x
git+https://github.com/GeminiDRSoftware/pytest_dragons.git@v1.0.5#egg=pytest_dragons
git+https://github.com/GeminiDRSoftware/DRAGONS.git@dev/scorpio
changedir =
.tmp
commands =
python --version
which python
which pip
which pytest
pip install wheel
pip install --no-use-pep517 git+https://github.com/GeminiDRSoftware/AstroFaker#egg=AstroFaker
conda list
noop: python -c "pass" # just install deps & ensure python runs
scorpio: python -m coverage run --rcfile={toxinidir}/.coveragerc -m pytest -v --dragons-remote-data --durations=20 -m "(scorpio or scorpioimage) and not slow and not wavecal" {posargs:scorpiodr scorpio_instruments}
docs: sphinx-build {posargs} . _build/html
[testenv:covreport]
skip_install = true
conda_deps =
deps = coverage
commands = coverage {posargs:report}
[testenv:codecov]
skip_install = true
passenv = CI JENKINS_* CODECOV_TOKEN
conda_deps =
deps = codecov
commands =
codecov {posargs}
[testenv:check]
skip_install = true
conda_deps =
deps =
pydocstyle
pylint
whitelist_externals =
bash
mkdir
commands =
mkdir -p reports
bash -c \'pylint --exit-zero --rcfile=gempy/support_files/pylintrc \
scorpio_instruments scorpiodr > reports/pylint.log\'
bash -c \'pydocstyle --add-ignore D400,D401,D205,D105,D105 \
--match="(?!test_|conf).*\.py" scorpio_instruments scorpiodr \
> reports/pydocstyle.log || exit 0\'