Skip to content

Commit

Permalink
add pre-commit install as a hatch command since it does not work as a…
Browse files Browse the repository at this point in the history
… post-install script
  • Loading branch information
mikealfare committed Apr 18, 2024
1 parent d373de2 commit cdff45a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ."
Expand Down

0 comments on commit cdff45a

Please sign in to comment.