alexcouper / captainhook

Git hook scripts
BSD 3-Clause "New" or "Revised" License
54 stars 14 forks source link

Use `file` to determine which files are Python files #27

Closed OddBloke closed 10 years ago

OddBloke commented 10 years ago

This also refactors the pdb checker to use the same grep command as the grep checker, and files_for_commit to return a list of filenames (rather than a bash object).

alexcouper commented 10 years ago

For future reference, I've begun adding test files for each of the checkers.

https://github.com/alexcouper/captainhook/blob/master/test/test_checkers/test_pdb.py