mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-07 01:41:06 +03:00
update outdated pylint setup
The logilab-astng lib is dead, replaced by python-astroid. The crazy astng plugin is no longer needed also. #281
This commit is contained in:
parent
361ce5ca41
commit
12c80f9062
3 changed files with 56 additions and 55 deletions
|
@ -87,19 +87,14 @@ sh hooks/pre-commit
|
|||
#------------------------------------------------------------------------------#
|
||||
# run pylint
|
||||
|
||||
cd $WORKSPACE
|
||||
set +e
|
||||
# use the pyvenv so pylint checks against its installed libs
|
||||
PYTHONPATH=$WORKSPACE/.pylint-plugins python3 /usr/bin/pylint \
|
||||
--output-format=parseable --reports=n \
|
||||
--load-plugins astng_hashlib \
|
||||
fdroidserver/*.py fdroid makebuildserver setup.py > $WORKSPACE/pylint.parseable
|
||||
|
||||
# to only tell jenkins there was an error if we got ERROR or FATAL, uncomment these:
|
||||
# running pylint in the pyvenv/virtualenv is causing this FATAL error, which is a bug:
|
||||
# https://bitbucket.org/logilab/pylint/issue/73/pylint-is-unable-to-import
|
||||
[ $(($? & 1)) = "1" ] && echo "FATALs found"
|
||||
[ $(($? & 2)) = "2" ] && exit 2
|
||||
[ $(($? & 4)) = "4" ] && exit 4
|
||||
set -e
|
||||
|
||||
# only run it where it will work, for example, the pyvenvs above don't have pylint
|
||||
if which pylint3 && python3 -c "import pylint" 2> /dev/null; then
|
||||
cd $WORKSPACE
|
||||
pylint3 --rcfile=.pylint-rcfile --output-format=colorized --reports=n \
|
||||
fdroid \
|
||||
makebuildserver \
|
||||
setup.py \
|
||||
fdroidserver/*.py \
|
||||
tests/*.py \
|
||||
tests/*.TestCase
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue