From b337e51e91e2d6ea76846f52ef9e678ba2dd8353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Wed, 23 Feb 2022 22:47:05 +0100 Subject: [PATCH] run flake8 on all .py files --- gallery_dl/__init__.py | 3 ++- setup.cfg | 3 ++- setup.py | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gallery_dl/__init__.py b/gallery_dl/__init__.py index dc96ecda..ea750d0e 100644 --- a/gallery_dl/__init__.py +++ b/gallery_dl/__init__.py @@ -201,7 +201,8 @@ def main(): if sys.stdin: urls += util.parse_inputfile(sys.stdin, log) else: - log.warning("input file: stdin is not readable") + log.warning( + "input file: stdin is not readable") else: with open(inputfile, encoding="utf-8") as file: urls += util.parse_inputfile(file, log) diff --git a/setup.cfg b/setup.cfg index 0ff5da6f..521edc5d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,6 @@ [flake8] -exclude = gallery_dl/__init__.py,gallery_dl/__main__.py,setup.py,build,scripts,archive +exclude = build,archive ignore = E203,E226,W504 per-file-ignores = + setup.py: E501 gallery_dl/extractor/500px.py: E501 diff --git a/setup.py b/setup.py index c9acf2c0..3d97d27f 100644 --- a/setup.py +++ b/setup.py @@ -12,6 +12,7 @@ def read(fname): with open(path, encoding="utf-8") as file: return file.read() + def check_file(fname): path = os.path.join(os.path.dirname(__file__), fname) if os.path.exists(path):