Pre commit
Merge request reports
Activity
Filter activity
After long last, i've found a solution that works and doesn't even depend on pre-commit (screw that). Just add a
pre-commit
file to .git/hooks with the following content:#!/bin/bash cd backend unset GIT_DIR git diff --cached --name-only --relative | xargs prospector --uses django
Prospector must be installed, so either the virtualenv must be activated during commit, or it mus be installed system-wide.
Edited by robinwilliam.hundt
mentioned in commit 295379b6
Please register or sign in to reply