Skip to content

Commit eee40e0

Browse files
matthiasdienerinducer
authored andcommitted
add run-pylint.sh
1 parent 0db5785 commit eee40e0

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ distribute*tar.gz
1616
.mypy_cache
1717

1818
*.dat
19+
20+
.pylintrc.yml
21+
.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 pytools examples "$@"

0 commit comments

Comments
 (0)