Skip to content

Update from copier (2025-08-03T05:25:43) #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .copier-answers.yaml
Original file line number Diff line number Diff line change
@@ -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 JavaScript
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,13 @@ js/dist
js/lib
js/node_modules
js/*.tgz
hatch_javascript/extension

# Jupyter
.ipynb_checkpoints
.autoversion
!hatch_javascript/extension/hatch_javascript.json
!hatch_javascript/extension/install.json
hatch_javascript/nbextension
hatch_javascript/labextension

Expand Down
24 changes: 18 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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_javascript
python -m ruff format --check hatch_javascript

# 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_javascript
python -m ruff format hatch_javascript

# 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

################
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ Hatch plugin for JavaScript

## Overview

<<<<<<< before updating
Wrapper for [hatch-js](https://github.com/python-project-templates/hatch-js)

=======
>>>>>>> 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).
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,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",
Expand All @@ -58,6 +61,7 @@ Homepage = "https://github.com/python-project-templates/hatch-javascript"
current_version = "0.1.0"
commit = true
tag = true
commit_args = "-s"

[[tool.bumpversion.files]]
filename = "hatch_javascript/__init__.py"
Expand Down
Loading