-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test tools Pylint, Flake8 and Bandit configurations were simplified. The Pylint configuration was a long default configuration that contained all the options with most of the options in default values. There was also a separate files for the tests and snippy source code. Now only the needed options are configured and the files are merged to one default file 'pylintrc'. The Flake8 configuration was moved to setup.cfg to remove own configuration file. The result files for Pylint and Bandit were removed. This was not a good idea in the past. The configuration should be read from pyproject.toml. But the tools do not yet support this feature. [1] pylint-dev/pylint#617 [2] https://gitlab.com/pycqa/flake8/issues/428 [3] pytest-dev/pytest#1556 Signed-off-by: Heikki Laaksonen <[email protected]>
- Loading branch information
Showing
17 changed files
with
79 additions
and
988 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[MESSAGES CONTROL] | ||
# The class object inheritance is required in Python 2. | ||
disable=useless-object-inheritance | ||
|
||
[TYPECHECK] | ||
|
||
# The falcon class is ignored because it causes warnings from | ||
# predefined HTTP status codes. | ||
# | ||
# Ignored because closing from contextlib causes unnecessary | ||
# warning from 'with' clause. | ||
ignored-classes=closing,falcon | ||
|
||
# Ignored because test cases replace the implementations with | ||
# mock that has additional member attributes. | ||
ignored-modules=json,yaml | ||
|
||
[FORMAT] | ||
|
||
# Suited as of now for long lines in tests cases. | ||
max-line-length=145 | ||
|
||
[DESIGN] | ||
|
||
# Suited as of now for long methods in tests cases. | ||
max-args=9 | ||
max-statements=60 |
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 |
---|---|---|
@@ -1,2 +1,5 @@ | ||
[bdist_wheel] | ||
universal=1 | ||
|
||
[flake8] | ||
max-line-length = 140 |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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.