Skip to content

Commit 5954415

Browse files
matthiasdienerinducer
authored andcommitted
add run-pylint
1 parent fdfa2ed commit 5954415

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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

run-pylint.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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 "$@"

0 commit comments

Comments
 (0)