diff --git a/.checks.yml b/.checks.yml new file mode 100644 index 0000000..cd2d518 --- /dev/null +++ b/.checks.yml @@ -0,0 +1,2 @@ +- bandit +- flake8 diff --git a/.travis.yml b/.travis.yml index 9195e6e..9e07fe7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,10 +3,6 @@ sudo: false cache: pip matrix: include: - - env: TOXENV=flake8-py27 - python: 2.7 - - env: TOXENV=flake8-py36 - python: 3.6 - env: TOXENV=readme-py27 python: 2.7 - env: TOXENV=py27-dj111-coverage diff --git a/setup.cfg b/setup.cfg index a8c18eb..28c24e9 100644 --- a/setup.cfg +++ b/setup.cfg @@ -7,3 +7,7 @@ branch = 1 parallel = 1 [coverage:report] include = configurations/*,tests/* + +[flake8] +exclude = .tox,docs/* +ignore = E501,E127,E128,E124,W503 diff --git a/tox.ini b/tox.ini index 0f8c5b3..24813fa 100644 --- a/tox.ini +++ b/tox.ini @@ -4,8 +4,6 @@ usedevelop = true minversion = 1.8 whitelist_externals = sphinx-build envlist = - flake8-py27, - flake8-py36, readme-py27, py{27,34,35,36,py}-dj{18,110,111} py{34,35,36,37}-dj20 @@ -38,15 +36,3 @@ commands = [testenv:readme-py27] commands = python setup.py check -r -s deps = readme_renderer - -[testenv:flake8-py27] -commands = flake8 configurations tests -deps = flake8 - -[testenv:flake8-py36] -commands = flake8 configurations tests -deps = flake8 - -[flake8] -exclude = .tox -ignore = E501,E127,E128,E124,W503