meta: add hatch fmt to check script

This commit is contained in:
Mark Joshwel 2024-03-26 18:52:23 +00:00
parent f73cee3684
commit fb45c2177b

View file

@ -64,8 +64,15 @@ description = "default development environment"
dependencies = ["mypy", "isort"] dependencies = ["mypy", "isort"]
[tool.hatch.envs.default.scripts] [tool.hatch.envs.default.scripts]
check = ["- mypy *.py", "- isort --check surplus"] check = [
format = ["hatch fmt -f", "isort surplus"] "mypy *.py",
"hatch fmt --check",
"isort --check surplus"
]
format = [
"hatch fmt -f",
"isort surplus"
]
[tool.hatch.envs.docs] [tool.hatch.envs.docs]
detached = true detached = true