-
Notifications
You must be signed in to change notification settings - Fork 665
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[gui-tests] setup pylint for test code (#11836)
* style: add python lint config * test: add pylint config * test: fix python lint * test: fix python lint * test: fix python lint * ci: add python lint pipeline * fix: lint fix command * ci: merge lint and format
- Loading branch information
Showing
13 changed files
with
362 additions
and
292 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
[MASTER] | ||
init-hook='import sys; sys.path.append("./shared/scripts")' | ||
|
||
[MAIN] | ||
enable=all | ||
disable= | ||
missing-docstring, | ||
global-statement, | ||
locally-disabled, | ||
suppressed-message, | ||
unused-variable, | ||
too-many-public-methods, | ||
bare-except, | ||
fixme, | ||
; TODO: enable later | ||
invalid-name, | ||
fail-under=10 | ||
ignore-paths=^tst_.*/test.py$|shared/scripts/names.py | ||
ignored-modules=squish,object | ||
load-plugins= | ||
pylint.extensions.check_elif, | ||
pylint.extensions.bad_builtin, | ||
pylint.extensions.code_style, | ||
pylint.extensions.overlapping_exceptions, | ||
pylint.extensions.typing, | ||
pylint.extensions.redefined_variable_type, | ||
py-version=3.8 | ||
unsafe-load-any-extension=no | ||
|
||
[BASIC] | ||
attr-naming-style=snake_case | ||
class-const-naming-style=UPPER_CASE | ||
class-naming-style=PascalCase | ||
const-naming-style=UPPER_CASE | ||
function-naming-style=snake_case | ||
method-naming-style=snake_case | ||
module-naming-style=any | ||
variable-naming-style=snake_case | ||
|
||
[VARIABLES] | ||
additional-builtins= | ||
squish, | ||
test, | ||
testSettings, | ||
OnFeatureStart, | ||
OnFeatureEnd, | ||
OnScenarioStart, | ||
OnScenarioEnd, | ||
QApplication, | ||
Given, | ||
When, | ||
Then, | ||
Step, | ||
allow-global-unused-variables=no | ||
dummy-variables-rgx=^hook$|^_*$|^step$ | ||
ignored-argument-names=^context$|^_*$ | ||
|
||
[STRING] | ||
check-quote-consistency=yes | ||
|
||
[FORMAT] | ||
indent-string=' ' | ||
max-line-length=120 | ||
|
||
[TYPECHECK] | ||
ignored-classes=object,test | ||
|
||
[SIMILARITIES] | ||
ignore-comments=yes | ||
ignore-docstrings=yes | ||
ignore-imports=yes |
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.