-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
36 lines (32 loc) · 1.01 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
[tox]
minversion = 1.6
skipsdist = True
envlist = py27, pep8
[flake8]
max-line-length = 100
ignore =
# Default non-PEP8 ignores
# See <https://pycodestyle.readthedocs.io/en/latest/intro.html#error-codes>
E121, E123, E126, E133, E226, E241, E242, E704, W503,
# E402: module level import not at top of file
E402
exclude =
# Do not lint the tox runtime directory
.tox,
# Ignore user dotfiles and scripts
modules/admin/files/home,
# Upstream files that don't pass flake8 but should not be locally modified
modules/jupyterhub/files/jupyterhub_config.py,
modules/jupyterhub/files/nchp_config.py,
modules/letsencrypt/files/acme_tiny.py,
modules/mailman/files/mm_cfg.py,
modules/postgresql/files/check_postgres_replication_lag.py,
modules/varnish/files/varnishapi.py
[testenv]
deps =
nose
-rmodules/admin/data/requirements.txt
commands = nosetests modules/admin/data modules/mediawiki/files/apache/sites/redirects
[testenv:pep8]
deps = flake8==3.3.0
commands = flake8