From 4d74dd443d9f15e78f1ce7347b4dbe937d4c551f Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Wed, 17 Apr 2024 22:03:01 -0400 Subject: [PATCH] make pre-commit installation a normal hatch command as it does not run as a post install command --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 05e535f9..f6d23c92 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -68,8 +68,8 @@ dependencies = [ "types-pytz", "types-PyYAML", ] -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 ."