Fix pylint configuration, script and matcher (#491)

* Fix pylint configuration, script and matcher

* Makes yapf happy

* Fix one-liner docstring

* Fix one-liner docstring
This commit is contained in:
Jean-Michel Picod
2022-06-07 20:39:22 +02:00
committed by GitHub
parent 12f6ed6e0b
commit 15233dba3e
5 changed files with 397 additions and 200 deletions

View File

@@ -13,19 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
SUCCESS=0
# Ensure we are at the project root directory
cd $(readlink -f $(dirname $0))/..
for file in `find . ! -path "./third_party/*" -type f -name '*.py'`
do
# Output header for our custom matcher on Github workflow
echo "PYLINT:${file}"
if ! pylint --rcfile=.pylintrc --score=n "$file"
then
SUCCESS=1
fi
done
exit $SUCCESS
pylint --score=n `git ls-files --deduplicate --exclude-standard --full-name '*.py'`