From 789908f13f16805de8a54194b19a9ffedc817d12 Mon Sep 17 00:00:00 2001 From: Robert Blenis Date: Sat, 13 Mar 2021 11:39:43 -0500 Subject: [PATCH] fix pep8 violations in errorlist.py --- scripts/errorlist.py | 2 +- setup.cfg | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/errorlist.py b/scripts/errorlist.py index bd33faf4..c4a0e7a0 100755 --- a/scripts/errorlist.py +++ b/scripts/errorlist.py @@ -2,7 +2,7 @@ from textwrap import indent -import borg.archiver +import borg.archiver # noqa: F401 - need import to get Error and ErrorWithTraceback subclasses. from borg.helpers import Error, ErrorWithTraceback classes = Error.__subclasses__() + ErrorWithTraceback.__subclasses__() diff --git a/setup.cfg b/setup.cfg index 986ec12b..d762793f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -43,7 +43,6 @@ ignore = E226, W503 # flake8 failures that appear with your change. per_file_ignores = docs/conf.py:E121,E126,E265,E305,E401,E402 - scripts/errorlist.py:F401 src/borg/archive.py:E122,E125,E127,E402,E501,F401,F405,W504 src/borg/archiver.py:E126,E127,E128,E501,E722,E731,E741,F401,F405,W504 src/borg/cache.py:E127,E128,E402,E501,E722,W504