mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix: run pre-commit checks instead of flake8 and isort
Signed-off-by: Leonidas Spyropoulos <artafinde@archlinux.org>
This commit is contained in:
parent
6435c2b1f1
commit
310c469ba8
2 changed files with 3 additions and 4 deletions
|
@ -18,6 +18,6 @@ pacman -Syu --noconfirm --noprogressbar \
|
||||||
php php-fpm memcached php-memcached python-pip pyalpm \
|
php php-fpm memcached php-memcached python-pip pyalpm \
|
||||||
python-srcinfo curl libeatmydata cronie python-poetry \
|
python-srcinfo curl libeatmydata cronie python-poetry \
|
||||||
python-poetry-core step-cli step-ca asciidoc \
|
python-poetry-core step-cli step-ca asciidoc \
|
||||||
python-virtualenv
|
python-virtualenv python-pre-commit
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
|
|
@ -21,8 +21,7 @@ rm -f /data/.coverage
|
||||||
cp -v .coverage /data/.coverage
|
cp -v .coverage /data/.coverage
|
||||||
chmod 666 /data/.coverage
|
chmod 666 /data/.coverage
|
||||||
|
|
||||||
# Run flake8 and isort checks.
|
# Run pre-commit checks
|
||||||
for dir in aurweb test migrations; do
|
for dir in aurweb test migrations; do
|
||||||
flake8 --count $dir
|
pre-commit run -a
|
||||||
isort --check-only $dir
|
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Reference in a new issue