From d28e070c97826f006ccb942c299ec3771401d731 Mon Sep 17 00:00:00 2001 From: Eric Joanis Date: Fri, 13 Dec 2024 13:49:25 -0500 Subject: [PATCH] ci: run all pre-commit hooks instead of just black --- .github/workflows/tests.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 6625b8ed..d36699f0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -49,10 +49,11 @@ jobs: curl http://127.0.0.1:8000/api/v1/langs | grep Cree kill %1 - - name: Nitpicking + - name: Make sure pre-commit hooks pass + uses: pre-commit/action@v3.0.1 + + - name: Minimalist license check run: | - # coding style: we want black compliance - find . -name \*.py | xargs black --check # Legal check: make sure we don't have or introduce GPL dependencies if pip-licenses | grep -v 'Artistic License' | grep -v LGPL | grep GNU; then echo 'Please avoid introducing *GPL dependencies'; false; fi