File tree Expand file tree Collapse file tree 3 files changed +12
-14
lines changed
Expand file tree Collapse file tree 3 files changed +12
-14
lines changed Original file line number Diff line number Diff line change 3636 run : |
3737 poetry install --with dev
3838
39- - name : Lint with ruff
40- run : |
41- poetry run ruff check
42-
4339 - name : Run liter
4440 run : |
45- ./check_all_python_scripts .sh
41+ ./check_all_python_files .sh
4642
4743 - name : Install language dependencies
4844 working-directory : ${{github.workspace}}/system_setup_scripts
Original file line number Diff line number Diff line change 22
33set -euo pipefail
44
5+ poetry run ruff check .
6+ poetry run mypy .
57poetry run bandit -c bandit.yml -r .
68
79find . -name " *.py" -not -path " ./tests/example_data/python3/*" -exec ./check_python_file.sh {} +
Original file line number Diff line number Diff line change @@ -7,20 +7,20 @@ declare -i exit_code=0
77for cur_file in " $@ "
88do
99 printf " Checking \" %s\" \n" " ${cur_file} "
10- printf " Checking with pylint:\n "
11- if ! poetry run pylint " ${cur_file} " ; then
10+ pylint_output= $( poetry run pylint " ${cur_file} " 2>&1 ) || {
11+ printf " Checking with pylint:\n%s\n " " ${pylint_output} "
1212 exit_code=1
13- fi
13+ }
1414
15- printf " Checking with flake8:\n "
16- if ! poetry run flake8 " ${cur_file} " --count --max-line-length=88 --show-source --ignore=E203 ; then
15+ flake8_output= $( poetry run flake8 " ${cur_file} " --count --max-line-length=88 --show-source --ignore=E203,W503 2>&1 ) || {
16+ printf " Checking with flake8:\n%s\n " " ${flake8_output} "
1717 exit_code=1
18- fi
18+ }
1919
20- printf " Checking with mypy:\n "
21- if ! poetry run mypy " ${cur_file} " ; then
20+ mypy_output= $( poetry run mypy " ${cur_file} " 2>&1 ) || {
21+ printf " Checking with mypy:\n%s\n " " ${mypy_output} "
2222 exit_code=1
23- fi
23+ }
2424done
2525
2626if [[ ${exit_code} -eq 0 ]] ; then
You can’t perform that action at this time.
0 commit comments