Skip to content

Commit

Permalink
Run pre-commit only with supported pythons
Browse files Browse the repository at this point in the history
  • Loading branch information
shosca committed Apr 13, 2022
1 parent cd07a90 commit 7c301c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ clean-test: ## remove test and coverage artifacts
resetdb: $(RESETDBS)

lint: ## run pre-commit hooks on all files
pre-commit run --all-files
-if python -c "import sys; exit(1) if (sys.version_info.major, sys.version_info.minor) < (3, 7) else exit(0)"; then \
pre-commit run --all-files ; \
fi

coverage: ## check code coverage quickly with the default Python
py.test $(PYTEST_OPTS) \
Expand Down

0 comments on commit 7c301c7

Please sign in to comment.