2020-05-19 16:24:22 +00:00
|
|
|
|
[flake8]
|
2020-05-25 18:37:27 +00:00
|
|
|
|
filename =
|
|
|
|
|
|
*.py
|
2020-05-29 08:58:15 +00:00
|
|
|
|
extend-exclude =
|
|
|
|
|
|
build/
|
|
|
|
|
|
_LinkChecker_configdata.py
|
2020-06-03 19:06:36 +00:00
|
|
|
|
# Derived from published packages
|
|
|
|
|
|
linkcheck/better_exchook2.py
|
|
|
|
|
|
linkcheck/colorama.py
|
2020-05-25 18:37:27 +00:00
|
|
|
|
builtins =
|
|
|
|
|
|
_
|
|
|
|
|
|
_n
|
2020-05-26 19:20:57 +00:00
|
|
|
|
max-line-length = 88
|
2020-05-25 18:37:27 +00:00
|
|
|
|
per-file-ignores =
|
|
|
|
|
|
# In several files imports intentionally cause:
|
|
|
|
|
|
# E402: module level import not at top of file
|
|
|
|
|
|
# F401: module imported but unused
|
2020-08-11 18:16:31 +00:00
|
|
|
|
doc/src/conf.py: E402,F821
|
2020-05-25 18:37:27 +00:00
|
|
|
|
linkcheck/__init__.py: E402,F401
|
|
|
|
|
|
linkcheck/checker/httpurl.py: E402
|
|
|
|
|
|
linkcheck/htmlutil/htmlsoup.py: E402
|
|
|
|
|
|
linkcheck/parser/__init__.py: E402
|
|
|
|
|
|
tests/__init__.py: F401
|
2020-05-28 19:29:13 +00:00
|
|
|
|
# E501: line too long
|
2020-05-30 16:01:36 +00:00
|
|
|
|
linkcheck/ftpparse.py: E501
|
2020-08-09 16:10:26 +00:00
|
|
|
|
linkcheck/checker/unknownurl.py: E501
|
2021-12-20 19:34:58 +00:00
|
|
|
|
linkcheck/command/arg_parser.py: E501
|
2020-08-09 16:10:26 +00:00
|
|
|
|
scripts/update_iana_uri_schemes.py: E501
|
2020-05-28 19:29:13 +00:00
|
|
|
|
tests/test_ftpparse.py: E501
|
2020-05-30 16:01:36 +00:00
|
|
|
|
# F821 undefined name
|
2020-06-03 19:06:36 +00:00
|
|
|
|
# https://github.com/PyCQA/pyflakes/issues/548
|
2020-05-30 16:01:36 +00:00
|
|
|
|
linkcheck/logger/__init__.py: F821
|
2025-04-07 18:22:19 +00:00
|
|
|
|
# F824 name is never assigned in scope
|
|
|
|
|
|
linkcheck/strformat.py: F824
|
2020-05-19 16:24:22 +00:00
|
|
|
|
extend-ignore =
|
|
|
|
|
|
# https://pep8.readthedocs.org/en/latest/intro.html#error-codes
|
|
|
|
|
|
# these are ignored by default:
|
|
|
|
|
|
# E121: continuation line under-indented for hanging indent
|
|
|
|
|
|
# E123: closing bracket does not match indentation of opening bracket’s line
|
|
|
|
|
|
# E126: continuation line over-indented for hanging indent
|
|
|
|
|
|
# E133: closing bracket does not match visual indentation
|
|
|
|
|
|
# E226: missing whitespace around arithmetic operator
|
|
|
|
|
|
# E241: multiple spaces after ‘,’
|
|
|
|
|
|
# E242: tab after ‘,’
|
|
|
|
|
|
# E704: multiple statements on one line (def)
|
|
|
|
|
|
# W503: line break before binary operator
|
|
|
|
|
|
# W504: line break after binary operator
|