This repository has been archived by the owner on Oct 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
tox.ini
86 lines (76 loc) · 1.6 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
[tox]
envlist = pytest, pre-commit, sphinx
skipsdist = True
skip_missing_interpreters = True
[testenv]
basepython = python
[testenv:pytest]
setenv =
CONDA_DLL_SEARCH_MODIFICATION_ENABLE = 1
conda_deps =
codecov
flake8
oyaml
matplotlib
numpy>=1.19.5
pandas>=1.2.0
scipy
statsmodels
pytest>=6.2.1
pytest-cov
pytest-xdist
conda_channels =
defaults
conda-forge
deps =
kernreg
scikit-learn
scikit-misc<=0.1.3
commands =
pytest {posargs}
[testenv:pre-commit]
passenv = USERPROFILE SSH_AUTH_SOCK
deps =
doc8
pre-commit
conda_channels =
conda-forge
commands =
pre-commit install -f --install-hooks
pre-commit run --all-files
[testenv:sphinx]
changedir = docs
conda_deps =
python
ipython
nbsphinx
numpydoc
sphinx
sphinxcontrib-bibtex<2.0.0
sphinx-autoapi<1.6.0
sphinx_rtd_theme
pydata-sphinx-theme
conda_channels =
conda-forge
commands =
sphinx-build -T -b html -d {envtmpdir}/doctrees . {envtmpdir}/html
- sphinx-build -T -b linkcheck -d {envtmpdir}/doctrees . {envtmpdir}/linkcheck
[doc8]
max-line-length = 89
ignore = D002,D004
[flake8]
exclude = docs/*, development/*, grmpy/test/*
max-line-length = 89
max-complexity = 15
ignore =
E203 ; ignores whitespace around : which is enforced by Black.
W503 ; ignores linebreak before binary operator which is enforced by Black.
PT006 ; ignores using tuples of strings as default for pytest parametrize.
per-file-ignores =
grmpy/test/*:D
[pytest]
junit_family = xunit2
addopts = --doctest-modules
norecursedirs =
.idea
.tox