Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Oct 16, 2024
1 parent 9318137 commit 9f68eca
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions steps/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ set -o pipefail

cffconvert --validate

mypy --strict "${LOCAL}/"
mypy --strict "${LOCAL}/" --exclude "${TARGET}/.*"

flake8 --max-line-length=140 --exclude venv "${LOCAL}/"

export PYTHONPATH="${PYTHONPATH}:${LOCAL}/pylint_plugins/"

find "${LOCAL}" -type f -name '*.py' -not -path "${LOCAL}/venv/**" -print0 | xargs -0 -n1 pylint --enable-all-extensions --load-plugins=custom_checkers \
find "${LOCAL}" -type f -name '*.py' -not -path "${LOCAL}/venv/**" -not -path "${TARGET}/**" -print0 | xargs -0 -n1 pylint --enable-all-extensions --load-plugins=custom_checkers \
--disable=empty-comment \
--disable=missing-module-docstring \
--disable=invalid-name \
Expand All @@ -53,6 +53,7 @@ bibcop tex/report.bib

while IFS= read -r sh; do
shellcheck --shell=bash --severity=style "${sh}"
echo "${sh}: shellcheck OK"
done < <(find "$(realpath "${LOCAL}")" -name '*.sh' -type f -not -path "$(realpath "${TARGET}")/**" -not -path "$(realpath "${LOCAL}")/venv/**")

header="Copyright (c) 2021-$(date +%Y) Yegor Bugayenko"
Expand Down

0 comments on commit 9f68eca

Please sign in to comment.