From 3e98f9bfd7495bf92ef21353359e8e0afc4a2546 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Wed, 1 Apr 2020 15:57:45 +0100 Subject: [PATCH] add pre-commit helper --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index c07b6fd0..c9532054 100644 --- a/Makefile +++ b/Makefile @@ -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)"