Skip to content

Commit f24d12f

Browse files
author
Eric Diven
committed
Add precommit target
If we only had a dollar for every time somebody (me included) pushed with a lint or sphinx error. make precommit runs all the stuff that's quick so we can stop doing that.
1 parent 996fcf3 commit f24d12f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
.PHONY: clean-all clean clean-eggs clean-build clean-pyc clean-test-containers clean-test \
22
clean-docs lint smoke test test-all test-rpm coverage docs open-docs release release-builds \
3-
dist dist-online dist-offline wheel install
3+
dist dist-online dist-offline wheel install precommit
44

55
help:
6+
@echo "precommit - run \`quick' tests and tasks that should pass or succeed prior to pushing"
67
@echo "clean-all - clean everything; effectively resets repo as if it was just checked out"
78
@echo "clean - remove build, test, coverage and Python artifacts except for the cache Presto RPM"
89
@echo "clean-eggs - remove *.egg and *.egg-info files and directories"
@@ -27,6 +28,8 @@ help:
2728
@echo "wheel - build wheel only"
2829
@echo "install - install the package to the active Python's site-packages"
2930

31+
precommit: clean dist test docs lint
32+
3033
clean-all: clean
3134
rm -f presto*.rpm
3235

0 commit comments

Comments
 (0)