From d5a4fd270d45f0ceef03bcee1815367b954ff77a Mon Sep 17 00:00:00 2001 From: William Ting Date: Wed, 31 May 2017 22:50:32 -0700 Subject: [PATCH] Add 'make lint' option. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 3675eed..2e8da45 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,10 @@ docs: pandoc -s -w man docs/manpage_header.md docs/header.md docs/body.md -o docs/autojump.1 pandoc -s -w markdown docs/header.md docs/install.md docs/body.md -o README.md +.PHONY: lint +lint: pre-commit + @tox -e pre-commit -- run --all-files + pre-commit: @tox -e pre-commit -- install -f --install-hooks