forked from mozilla/sphinx-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
31 lines (28 loc) · 859 Bytes
/
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
[tox]
envlist = py39, flake8
[testenv]
setenv =
PATH={toxinidir}/node_modules/.bin{:}{envbindir}{:}{env:PATH}
deps = -rrequirements_dev.txt
whitelist_externals =
env
npm
commands_pre = npm install --no-save [email protected] [email protected]
# Contrary to the tox docs, setenv's changes to $PATH are not visible inside
# any commands we call. I hack around this with env:
commands =
env PATH="{env:PATH}" pytest -vv
[testenv:flake8]
# Pinned so new checks aren't added by surprise:
deps =
flake8>=3.8,<3.9
flake8-quotes
flake8-import-order
skip_install=True
commands = flake8 sphinx_js tests
[flake8]
# I101: the "pep8" import-order-style is advertised as not complaining about
# import order, but it does. Ignore it.
ignore = E501, E127, E302, E305, W503, I101, W504
import-order-style = pep8
application-import-names = sphinx_js, tests