From 6b61b0c4170fa981441f900a43e20688c7679d6f Mon Sep 17 00:00:00 2001 From: James Date: Tue, 24 Feb 2026 01:26:45 -0500 Subject: [PATCH] chore(build,gitignore): Refactor web directory structure and build config - Replace index.html placeholder with .gitkeep to preserve empty web directory - Update .gitignore to ignore .claude/ and CLAUDE.md files - Simplify web directory exclusion pattern in .gitignore comments - Update pyproject.toml wheel build config to exclude only .gitkeep - Add sdist force-include configuration for web directory - Streamline build artifact handling to use .gitkeep instead of placeholder file --- .gitignore | 8 +++++--- pyproject.toml | 8 ++++---- src/tablesleuth/web/.gitkeep | 0 src/tablesleuth/web/index.html | 2 +- 4 files changed, 10 insertions(+), 8 deletions(-) create mode 100644 src/tablesleuth/web/.gitkeep diff --git a/.gitignore b/.gitignore index 583ac48..52bee46 100644 --- a/.gitignore +++ b/.gitignore @@ -62,6 +62,8 @@ dmypy.json Thumbs.db # Project specific +.claude/ +CLAUDE.md resources/config.json *.pem input/ @@ -89,10 +91,10 @@ docker-compose.override.yml backups/ ssl/ -# Web UI built artifacts (built by make build-release; placeholder index.html is committed) -# Ignore everything in web/ EXCEPT the placeholder index.html +# Web UI built artifacts (built by make build-release; not committed to git) +# Ignore everything in web/ EXCEPT .gitkeep which preserves the empty directory src/tablesleuth/web/* -!src/tablesleuth/web/index.html +!src/tablesleuth/web/.gitkeep # Next.js dev artifacts (web-ui/ source is committed, build output is not) web-ui/.next/ diff --git a/pyproject.toml b/pyproject.toml index 9e1991e..4be7d24 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -114,14 +114,14 @@ Changelog = "https://github.com/jamesbconner/TableSleuth/blob/main/CHANGELOG.md" # Hatchling configuration for src layout [tool.hatch.build.targets.wheel] packages = ["src/tablesleuth"] -# Exclude web/ from VCS-based discovery so force-include is the sole -# mechanism that adds it. This prevents duplicate entries for files -# (e.g. index.html) that are both git-tracked and listed in force-include. -exclude = ["src/tablesleuth/web/**"] +exclude = ["src/tablesleuth/web/.gitkeep"] [tool.hatch.build.targets.wheel.force-include] "src/tablesleuth/web" = "tablesleuth/web" +[tool.hatch.build.targets.sdist.force-include] +"src/tablesleuth/web" = "src/tablesleuth/web" + # ----------------------- # Ruff configuration # ----------------------- diff --git a/src/tablesleuth/web/.gitkeep b/src/tablesleuth/web/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/src/tablesleuth/web/index.html b/src/tablesleuth/web/index.html index 384ba75..7d594a2 100644 --- a/src/tablesleuth/web/index.html +++ b/src/tablesleuth/web/index.html @@ -1 +1 @@ -TableSleuth
+TableSleuth
\ No newline at end of file