File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -30,3 +30,7 @@ virtualenv-[0-9]*[0-9]
3030* .so
3131
3232.asv
33+
34+ # Files used by run-pylint.sh
35+ .pylintrc.yml
36+ .run-pylint.py
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ set -o errexit -o nounset
4+
5+ ci_support=" https://gitlab.tiker.net/inducer/ci-support/raw/main"
6+
7+ if [[ ! -f .pylintrc.yml ]]; then
8+ curl -o .pylintrc.yml " ${ci_support} /.pylintrc-default.yml"
9+ fi
10+
11+
12+ if [[ ! -f .run-pylint.py ]]; then
13+ curl -L -o .run-pylint.py " ${ci_support} /run-pylint.py"
14+ fi
15+
16+
17+ PYLINT_RUNNER_ARGS=" --jobs=4 --yaml-rcfile=.pylintrc.yml"
18+
19+ if [[ -f .pylintrc-local.yml ]]; then
20+ PYLINT_RUNNER_ARGS+=" --yaml-rcfile=.pylintrc-local.yml"
21+ fi
22+
23+ PYTHONWARNINGS=ignore python .run-pylint.py $PYLINT_RUNNER_ARGS $( basename $PWD ) test/test_* .py " $@ "
You can’t perform that action at this time.
0 commit comments