-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Ended up bigger than I'd hoped, but I think these are nearly all good changes... * Add pylint in CI * Split other linters into own jobs, was getting a bit all-or-nothing in that job * Add a sane config tweaked from default, but less onerous * Define the least-delta max-line-length that PEP-008 allows, 99 chars, and reflow a few lines. Looks nice anyway IMO * Fix all the various errors * Fix a few typos etc too * Rename one module (script) that wasn't python-friendly (snake_case) naming * ...and references to it * Initialise some object attributes in the constructor, not randomly elsewhere (soft warning in IDE) This actually found a few bugs, and gotchas (woohoo) so it'd be good if someone could sanity check those changes here: * In get_release_contributors `realname` was never defined so that code path would throw exceptions * Some of the regex char classes were actually control characters (missing the raw string prefix), so fixed. This closes #2546 Actually remove all escaping of literal braces Simple testing proves this isn't needed here: $ cat /usr/include/qt/QtCore/qlocale.h | python -c 'import re; import sys; s = sys.stdin.read(); print(re.search(r"enum Country[^\n]+{([^}]+)}", s).group(1))' | md5sum 46625fcf574732033f70b2f10ce25bc4 - vs $ cat /usr/include/qt/QtCore/qlocale.h | python -c 'import re; import sys; s = sys.stdin.read(); print(re.search(r"enum Country[^\n]+\{([^}]+)\}", s).group(1))' | md5sum 46625fcf574732033f70b2f10ce25bc4 -
- Loading branch information
1 parent
5034975
commit b28e22e
Showing
10 changed files
with
178 additions
and
97 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
[MAIN] | ||
|
||
# Specify a score threshold under which the program will exit with error. | ||
fail-under=10 | ||
|
||
[BASIC] | ||
|
||
# Minimum line length for functions/classes that require docstrings, shorter | ||
# ones are exempt. | ||
docstring-min-length=100 | ||
|
||
|
||
# Good variable names which should always be accepted, separated by a comma. | ||
good-names=s, f, i, j, k, e, _ | ||
|
||
# Include a hint for the correct naming format with invalid-name. | ||
include-naming-hint=yes | ||
|
||
[FORMAT] | ||
|
||
# Maximum number of characters on a single line. | ||
# See .editorconfig | ||
max-line-length=99 | ||
|
||
disable= | ||
# Disable enforcing constants as ALL_CAPS - | ||
# pylint produces too many false positives here | ||
C0103, | ||
# Allow redefining names from outer scope | ||
W0621, | ||
# Assume utf-8 everywhere | ||
W1514, | ||
# Allow classes with any number of public methods | ||
R0903, | ||
# Allow TODOs in code | ||
W0511 | ||
|
||
output-format=colorized | ||
|
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.