-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avocado is using pylint-3 instead of default pylint. This is a leftover from the time when avocado supported python2. Unfortunately, the pylint-3 has slightly different behaviour than pylint, therefore we need to update it to have more accurate testing. Lets use python3 -m pylint Signed-off-by: Jan Richter <[email protected]>
- Loading branch information
Showing
2 changed files
with
2 additions
and
6 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,9 +1,7 @@ | ||
#!/bin/sh -e | ||
echo "** Running lint..." | ||
|
||
PYLINT=$(which pylint-3 2>/dev/null || which pylint) | ||
|
||
# Those are files from our main packages, we should follow the .pylintrc file with all | ||
# enabled by default. Some are disabled, we are working to reduce this list. | ||
FILES=$(git ls-files '*.py') | ||
${PYLINT} ${PYLINT_OPTIONS} ${FILES} | ||
python3 -m pylint ${PYLINT_OPTIONS} ${FILES} |
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,6 +1,4 @@ | ||
#!/bin/sh -e | ||
echo "** Running spell check..." | ||
|
||
PYLINT=$(which pylint-3 2>/dev/null || which pylint) | ||
|
||
${PYLINT} -j 1 --errors-only --disable=all --enable=spelling --spelling-dict=en_US --spelling-private-dict-file=spell.ignore * | ||
python3 -m pylint -j 1 --disable=all --enable=spelling --spelling-dict=en_US --spelling-private-dict-file=spell.ignore * |