Skip to content

Commit

Permalink
Merge pull request #163 from valanm22/remove-printf
Browse files Browse the repository at this point in the history
style: remove redundant print statements from `check_python_file.sh`
  • Loading branch information
vil02 authored Dec 7, 2024
2 parents 8896a10 + 5a157b8 commit 8794496
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions check_python_file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,16 @@ do
}

flake8_output=$(poetry run flake8 "${cur_file}" --count --max-line-length=88 --show-source --ignore=E203,W503 2>&1) || {
printf "Checking \"%s\"\n" "${cur_file}"
printf "Checking with flake8:\n%s\n" "${flake8_output}"
exit_code=1
}

mypy_output=$(poetry run mypy "${cur_file}" 2>&1) || {
printf "Checking \"%s\"\n" "${cur_file}"
printf "Checking with mypy:\n%s\n" "${mypy_output}"
exit_code=1
}

xenon_output=$(poetry run xenon --max-absolute A --max-modules A --max-average A "${cur_file}" 2>&1) || {
printf "Checking \"%s\"\n" "${cur_file}"
printf "Checking with xenon:\n%s\n" "${xenon_output}"
exit_code=1
}
Expand Down

0 comments on commit 8794496

Please sign in to comment.