-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Re-enable pylint for newer distributions and resolve warnings
Re-enabling pylint checks for distributions newer than Ubuntu 18.04. This commit addresses the following pylint warnings: - Ignored warnings for imports outside toplevel. - Updated code to use `subprocess.run(check=True)` which raises an exception on non-zero return codes. Signed-off-by: Mariusz Zaborski <oshogbo@invisiblethingslab.com>
- Loading branch information
Showing
4 changed files
with
6 additions
and
8 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,10 +1,7 @@ | ||
stage('lint') { | ||
sh ''' | ||
./scripts/gitignore-check-files | ||
if .ci/isdistro bionic | ||
then | ||
./.ci/run-pylint -f text | ||
fi | ||
./.ci/run-pylint -f text | ||
./.ci/run-shellcheck | ||
''' | ||
} |
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