From cdff45a1b4f83362345e70dc13f7fc3f49e4b9cb Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Wed, 17 Apr 2024 21:58:37 -0400 Subject: [PATCH] add pre-commit install as a hatch command since it does not work as a post-install script --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 907ae743..d9c3b4f4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -63,8 +63,8 @@ dependencies = [ "types-protobuf", "types-pytz", ] -post-install-commands = ["pre-commit install"] [tool.hatch.envs.default.scripts] +dev = "pre-commit install" code-quality = "pre-commit run --all-files" # runs others via hooks black = "python -m black ." flake8 = "python -m flake8 ."