https://github.com/wikimedia/operations-puppet
Raw File
Tip revision: 546c68c2733c9de22370a9bed55eb5aab7c088aa authored by Daniel Zahn on 21 June 2017, 04:01:58 UTC
planet: add support/compat for stretch and rawdog
Tip revision: 546c68c
tox.ini
[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
back to top