2023-12-15 14:24:07 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2024-02-04 01:07:37 +00:00
|
|
|
EXE=/usr/local/bin/toxcore_pylint.bash
|
|
|
|
ROLE=toxcore
|
2023-12-15 14:24:07 +00:00
|
|
|
|
|
|
|
$EXE --recursive y --verbose --py-version 3.11 \
|
|
|
|
--output-format colorized --rcfile .pylint.rc \
|
2024-02-04 01:07:37 +00:00
|
|
|
-E -f text src/tox_wrapper/*py src/tox_wrapper/tests/*py > .pylint.err
|
2023-12-15 14:24:07 +00:00
|
|
|
retval=$?
|
|
|
|
|
|
|
|
$EXE --recursive y --verbose --py-version 3.11 \
|
|
|
|
--output-format colorized --rcfile .pylint.rc \
|
2024-02-04 01:07:37 +00:00
|
|
|
src/tox_wrapper/*py src/tox_wrapper/tests/*py > .pylint.out
|
2023-12-15 14:24:07 +00:00
|
|
|
|
|
|
|
sed -e "/Module 'os' has no/d" \
|
|
|
|
-e "/Undefined variable 'app'/d" \
|
|
|
|
-e '/tests\//d' \
|
|
|
|
-e "/Instance of 'Curl' has no /d" \
|
|
|
|
-e "/No name 'path' in module 'os' /d" \
|
|
|
|
-e "/ in module 'os'/d" \
|
|
|
|
-e "/.bak\//d" \
|
|
|
|
-i .pylint.err .pylint.out
|