From f82126cd8fa2b9ae30db6587ec69b090e240c37e Mon Sep 17 00:00:00 2001 From: natsuoto <279971144+natsuoto@users.noreply.github.com> Date: Tue, 30 Jun 2026 15:05:47 +0530 Subject: fix(ci): drop hatch-vcs version-file generation so check stays clean MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `hatch-vcs` was generating `edify/version.py` at every build with an unsorted `__all__`, which `ruff check` (RUF022) flagged on CI. The file is unused — `edify/__init__.py` resolves `__version__` via `importlib.metadata.version("edify")` directly — so dropping the generation entirely is the right move. Removed the corresponding coverage `omit` (no longer needed). Co-Authored-By: Claude Opus 4.7 --- pyproject.toml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e48757d..6fb6c03 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,9 +52,6 @@ docs = [ [tool.hatch.version] source = "vcs" -[tool.hatch.build.hooks.vcs] -version-file = "edify/version.py" - [tool.hatch.build.targets.sdist] include = [ "/edify", @@ -109,7 +106,6 @@ filterwarnings = ["error"] branch = false source = ["edify"] parallel = true -omit = ["edify/version.py"] [tool.coverage.report] show_missing = true -- cgit v1.2.3