From 5e6c4aea28924989385dfc7675fe4a873cce859f Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 3 Aug 2025 05:23:45 +0000 Subject: [PATCH 1/2] Update from copier (2025-08-03T05:23:45) Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> --- .copier-answers.yaml | 3 ++- .gitignore | 3 +++ Makefile | 24 ++++++++++++++++++------ README.md | 3 +++ pyproject.toml | 4 ++++ 5 files changed, 30 insertions(+), 7 deletions(-) diff --git a/.copier-answers.yaml b/.copier-answers.yaml index 09178d2..e33b64e 100644 --- a/.copier-answers.yaml +++ b/.copier-answers.yaml @@ -1,8 +1,9 @@ # Changes here will be overwritten by Copier -_commit: c53b04c +_commit: 2d0c192 _src_path: https://github.com/python-project-templates/base.git add_docs: false add_extension: python +add_wiki: false email: t.paine154@gmail.com github: python-project-templates project_description: Hatch plugin for Rust builds diff --git a/.gitignore b/.gitignore index b2e6401..38d71a0 100644 --- a/.gitignore +++ b/.gitignore @@ -139,10 +139,13 @@ js/dist js/lib js/node_modules js/*.tgz +hatch_rs/extension # Jupyter .ipynb_checkpoints .autoversion +!hatch_rs/extension/hatch_rs.json +!hatch_rs/extension/install.json hatch_rs/nbextension hatch_rs/labextension diff --git a/Makefile b/Makefile index 247fb47..d545876 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,11 @@ develop: ## install dependencies and build library uv pip install -e .[develop] +requirements: ## install prerequisite python build requirements + python -m pip install --upgrade pip toml + python -m pip install `python -c 'import toml; c = toml.load("pyproject.toml"); print("\n".join(c["build-system"]["requires"]))'` + python -m pip install `python -c 'import toml; c = toml.load("pyproject.toml"); print(" ".join(c["project"]["optional-dependencies"]["develop"]))'` + build: ## build the python library python -m build -n @@ -15,20 +20,27 @@ install: ## install library ######### # LINTS # ######### -.PHONY: lint lints fix format +.PHONY: lint-py lint-docs fix-py fix-docs lint lints fix format -lint: ## run python linter with ruff +lint-py: ## lint python with ruff python -m ruff check hatch_rs python -m ruff format --check hatch_rs -# Alias -lints: lint +lint-docs: ## lint docs with mdformat and codespell + python -m mdformat --check README.md + python -m codespell_lib README.md -fix: ## fix python formatting with ruff +fix-py: ## autoformat python code with ruff python -m ruff check --fix hatch_rs python -m ruff format hatch_rs -# alias +fix-docs: ## autoformat docs with mdformat and codespell + python -m mdformat README.md + python -m codespell_lib --write README.md + +lint: lint-py lint-docs ## run all linters +lints: lint +fix: fix-py fix-docs ## run all autoformatters format: fix ################ diff --git a/README.md b/README.md index 6542cd5..bef9194 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,7 @@ Hatch plugin for Rust builds ## Overview +<<<<<<< before updating A simple, extensible Rust build plugin for [hatch](https://hatch.pypa.io/latest/). ```toml @@ -18,5 +19,7 @@ path = "." module = "project" ``` +======= +>>>>>>> after updating > [!NOTE] > This library was generated using [copier](https://copier.readthedocs.io/en/stable/) from the [Base Python Project Template repository](https://github.com/python-project-templates/base). diff --git a/pyproject.toml b/pyproject.toml index 54ddead..ef8ed49 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,10 @@ develop = [ "build", "bump-my-version", "check-manifest", + "codespell>=2.4,<2.5", "hatchling", + "mdformat>=0.7.22,<0.8", + "mdformat-tables>=1", "pytest", "pytest-cov", "ruff", @@ -60,6 +63,7 @@ Homepage = "https://github.com/python-project-templates/hatch-rs" current_version = "0.1.0" commit = true tag = true +commit_args = "-s" [[tool.bumpversion.files]] filename = "hatch_rs/__init__.py" From 4f804755ae82d263aa8252104f5b22beb03fc52e Mon Sep 17 00:00:00 2001 From: Tim Paine <3105306+timkpaine@users.noreply.github.com> Date: Sun, 3 Aug 2025 13:32:23 -0400 Subject: [PATCH 2/2] Update README.md --- README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.md b/README.md index bef9194..6542cd5 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,6 @@ Hatch plugin for Rust builds ## Overview -<<<<<<< before updating A simple, extensible Rust build plugin for [hatch](https://hatch.pypa.io/latest/). ```toml @@ -19,7 +18,5 @@ path = "." module = "project" ``` -======= ->>>>>>> after updating > [!NOTE] > This library was generated using [copier](https://copier.readthedocs.io/en/stable/) from the [Base Python Project Template repository](https://github.com/python-project-templates/base).