add pre-commit helper

This commit is contained in:
Casper da Costa-Luis 2020-04-01 15:57:45 +01:00
parent 64ddde9827
commit 3e98f9bfd7
No known key found for this signature in database
GPG Key ID: 986B408043AE090D
1 changed files with 6 additions and 0 deletions

View File

@ -15,6 +15,7 @@
testtimer
distclean
coverclean
pre-commit
prebuildclean
clean
toxclean
@ -111,6 +112,11 @@ distclean:
@+make coverclean
@+make prebuildclean
@+make clean
pre-commit:
# quick sanity checks
@make testsetup
flake8 -j 8 --count --statistics tqdm/ examples/
nosetests tqdm --ignore-files="tests_(perf|keras)\.py" -e "pandas|monitoring" -d
prebuildclean:
@+python -c "import shutil; shutil.rmtree('build', True)"
@+python -c "import shutil; shutil.rmtree('dist', True)"