run flake8 on all .py files
This commit is contained in:
@@ -201,7 +201,8 @@ def main():
|
|||||||
if sys.stdin:
|
if sys.stdin:
|
||||||
urls += util.parse_inputfile(sys.stdin, log)
|
urls += util.parse_inputfile(sys.stdin, log)
|
||||||
else:
|
else:
|
||||||
log.warning("input file: stdin is not readable")
|
log.warning(
|
||||||
|
"input file: stdin is not readable")
|
||||||
else:
|
else:
|
||||||
with open(inputfile, encoding="utf-8") as file:
|
with open(inputfile, encoding="utf-8") as file:
|
||||||
urls += util.parse_inputfile(file, log)
|
urls += util.parse_inputfile(file, log)
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
[flake8]
|
[flake8]
|
||||||
exclude = gallery_dl/__init__.py,gallery_dl/__main__.py,setup.py,build,scripts,archive
|
exclude = build,archive
|
||||||
ignore = E203,E226,W504
|
ignore = E203,E226,W504
|
||||||
per-file-ignores =
|
per-file-ignores =
|
||||||
|
setup.py: E501
|
||||||
gallery_dl/extractor/500px.py: E501
|
gallery_dl/extractor/500px.py: E501
|
||||||
|
|||||||
1
setup.py
1
setup.py
@@ -12,6 +12,7 @@ def read(fname):
|
|||||||
with open(path, encoding="utf-8") as file:
|
with open(path, encoding="utf-8") as file:
|
||||||
return file.read()
|
return file.read()
|
||||||
|
|
||||||
|
|
||||||
def check_file(fname):
|
def check_file(fname):
|
||||||
path = os.path.join(os.path.dirname(__file__), fname)
|
path = os.path.join(os.path.dirname(__file__), fname)
|
||||||
if os.path.exists(path):
|
if os.path.exists(path):
|
||||||
|
|||||||
Reference in New Issue
Block a user