forked from s-weigand/flake8-nb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
63 lines (53 loc) · 1.45 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
[tox]
minversion = 3.4.0
skip_missing_interpreters=true
envlist = py{37,38,39,310}, flake8-nightly, flake8-legacy, pre-commit, docs, docs-links
[flake8_nb]
max-line-length = 100
; notebook_cell_format = {nb_path}#In[{exec_count}]test
; exclude=
; *.ipynb_checkpoints/*
; *.tox*
; filename=
; *.ipynb_parsed
; *.py
[pytest]
addopts = --cov=flake8_nb --cov-report term --cov-report xml --cov-report html --cov-config=pyproject.toml
filterwarnings =
ignore:.*not_a_notebook.ipynb
[testenv:docs]
whitelist_externals = make
commands =
make --directory=docs clean_all html
[testenv:docs-links]
whitelist_externals = make
commands =
make --directory=docs clean_all linkcheck
[testenv:pre-commit]
basepython=python
skip_install=true
commands_pre =
{envpython} -m pip install -U -q pre-commit
commands=pre-commit run --all
[testenv:flake8-nightly]
passenv = *
commands_pre =
{[testenv]commands_pre}
{envpython} -m pip install -U -q --force-reinstall git+https://gitlab.com/pycqa/flake8.git
commands =
{envpython} -c "import flake8_nb;print('FLAKE8 VERSION: ', flake8_nb.FLAKE8_VERSION_TUPLE)"
py.test -vv
[testenv:flake8-legacy]
passenv = *
commands_pre =
{[testenv]commands_pre}
{envpython} -m pip install -U -q 'flake8==3.7.0'
commands =
py.test -vv
[testenv]
passenv = *
install_command=python -m pip install {opts} {packages}
commands_pre =
{envpython} -m pip install -U -q -r {toxinidir}/requirements_dev.txt
commands =
py.test