From a6ecb8240c38a5cc7e307de0729df49eed6febef Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Thu, 17 Apr 2025 09:36:57 -0500 Subject: [PATCH] add lint-format --- pyproject.toml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index ce11345..c2ec4f8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,6 +7,8 @@ build-backend = "hatchling.build" [tool.hatch.build.targets.sdist] exclude = ["/.github"] +[tool.hatch.build.targets.binary] + [project] name = "krayt" dynamic = ["version"] @@ -54,3 +56,14 @@ path = "krayt/__about__.py" [project.scripts] 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']