From c3d2b3123252ea8ae5ef95d5f592c2d0f5fe9d06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 5 Jun 2020 17:59:03 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20ignore=20vendored=20sources=20in?= =?UTF-8?q?=20flake8=20run?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 2 +- setup.cfg | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f22281c11..b486a2df6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,7 +16,7 @@ install: - pip install -e .[develop] script: - test -n "$RUN_FLAKE8" || pytest -- test -z "$RUN_FLAKE8" || flake8 --ignore=D,E,W,F401,F523 src/ tests setup.py +- test -z "$RUN_FLAKE8" || flake8 src/ tests setup.py sudo: false git: depth: 250 diff --git a/setup.cfg b/setup.cfg index 24ae4b6df..6f5421829 100644 --- a/setup.cfg +++ b/setup.cfg @@ -12,3 +12,13 @@ versionfile_build = octoprint/_version.py tag_prefix = parentdir_prefix = lookupfile = .versioneer-lookup + +[flake8] +ignore = + D + E + W + F401 + F523 +exclude = + src/octoprint/vendor