run flake8 on all .py files

pull/3119/head
Mike Fährmann 3 years ago
parent fb2dbb04e2
commit b337e51e91
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

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

@ -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

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

Loading…
Cancel
Save