diff --git a/git_hooks/pre-commit b/git_hooks/pre-commit index 5f6c465..74fded4 100755 --- a/git_hooks/pre-commit +++ b/git_hooks/pre-commit @@ -5,4 +5,6 @@ vagrant ssh -c ". activate \ && echo 'Checking mypy type annotations...' && mypy . \ && echo 'Checking if Black would reformat any code...' && black --check . \ - && echo -n 'Running tests: ' && pytest -q" + && echo -n 'Running tests: ' && pytest -q \ + && echo 'Checking SCSS style...' && npm run --silent lint:scss \ + && echo 'Checking JS style...' && npm run --silent lint:js" diff --git a/git_hooks/pre-push b/git_hooks/pre-push index 76c9051..261bcfc 100755 --- a/git_hooks/pre-push +++ b/git_hooks/pre-push @@ -6,4 +6,6 @@ vagrant ssh -c ". activate \ && echo 'Checking mypy type annotations...' && mypy . \ && echo 'Checking if Black would reformat any code...' && black --check . \ && echo -n 'Running tests: ' && pytest -q \ - && echo 'Checking code style fully (takes a while)...' && prospector -M" + && echo 'Checking SCSS style...' && npm run --silent lint:scss \ + && echo 'Checking JS style...' && npm run --silent lint:js \ + && echo 'Checking Python style fully (takes a while)...' && prospector -M"