-
Notifications
You must be signed in to change notification settings - Fork 397
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
maint: Use flake8 config file (#2338)
* Configure flake8 in config file * Use config file * Show source of error * Ignore a file * Extend ignore * Fix exclude * Update .gitignore * ignore some warnings * fix some warnings * annote flake8 warnings in github actions * fix some flake warnings * ignore helper scripts * fix some warnings * ignore and fix some warnings * ignore warnings * ignore and fix warnings * fix warnings * Revert changes * fix flake8 warning * fix flake8 warnings * install dependencies * configure flake8 * suppress warning * fix imports * fix warning * suppress some documentation warnings
- Loading branch information
Showing
20 changed files
with
92 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,33 @@ | ||
[flake8] | ||
max-line-length = 120 | ||
max-line-length = 127 | ||
ignore = | ||
# continuation line over-indented for hanging indent | ||
E126, | ||
# continuation line over-indented for visual indent | ||
E127, | ||
# continuation line under-indented for visual indent | ||
E128 | ||
E128, | ||
# line break before binary operator | ||
W503, | ||
# We don't always want periods at the end of the first docstring line | ||
D400, | ||
# We dont rephrase to imperative mood | ||
D401 | ||
per-file-ignores = | ||
# Only in __init__files ignore imported but unused | ||
# Not necessary, if __all__ is declared in __init__ file | ||
# https://www.python.org/dev/peps/pep-0008/#id48 | ||
__init__.py:F401 | ||
__init__.py:F401, | ||
components/smart-home-automation/MQTT-protocol/daemon_mqtt_client.py:W605, | ||
components/controls/buttons_usb_encoder/*.py:E402 | ||
count = True | ||
max-complexity = 12 | ||
statistics = True | ||
show-source = True | ||
filename = *.py,*.py.* | ||
extend-exclude = | ||
# Ignore dirs and files, which are from external sources | ||
components/displays/HD44780-i2c/ | ||
scripts/Reader.py.pcsc | ||
# Ignore helper scripts | ||
scripts/helperscripts/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.