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):