From ed135d05b65462dee5afb64d9dc5a00e873d9ad2 Mon Sep 17 00:00:00 2001 From: cclauss Date: Thu, 15 Nov 2018 10:35:33 +0100 Subject: [PATCH] Travis CI: flake8 --max-complexity=10 https://github.com/PyCQA/mccabe is a part of flake8 --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 39f7a27..86347ee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,7 @@ install: - if [[ $TRAVIS_PYTHON_VERSION != 2* ]]; then pip install sphinx; fi - pip install . script: - - if [[ $TRAVIS_PYTHON_VERSION != 2.6 ]]; then flake8 .; fi + - if [[ $TRAVIS_PYTHON_VERSION != 2.6 ]]; then flake8 --max-complexity=10 .; fi - yamllint --strict $(git ls-files '*.yaml' '*.yml') - if [[ $TRAVIS_PYTHON_VERSION != 2.6 ]]; then coverage run --source=yamllint setup.py test;