add lint-format

This commit is contained in:
Waylon S. Walker 2025-04-17 09:36:57 -05:00
parent e8686a2c66
commit a6ecb8240c

View file

@ -7,6 +7,8 @@ build-backend = "hatchling.build"
[tool.hatch.build.targets.sdist] [tool.hatch.build.targets.sdist]
exclude = ["/.github"] exclude = ["/.github"]
[tool.hatch.build.targets.binary]
[project] [project]
name = "krayt" name = "krayt"
dynamic = ["version"] dynamic = ["version"]
@ -54,3 +56,14 @@ path = "krayt/__about__.py"
[project.scripts] [project.scripts]
krayt = "krayt.cli:app" krayt = "krayt.cli:app"
[tool.hatch.envs.default]
dependencies = [
"ruff",
"pyinstrument",
]
[tool.hatch.envs.default.scripts]
lint = "ruff check krayt"
format = "ruff format krayt"
lint-format = ['lint', 'format']