diff --git a/.copier-answers.yaml b/.copier-answers.yaml index 105525b..d48d0b6 100644 --- a/.copier-answers.yaml +++ b/.copier-answers.yaml @@ -1,8 +1,9 @@ # Changes here will be overwritten by Copier -_commit: c53b04c +_commit: fa27c8d _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 diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 109d0d0..53bb463 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -33,7 +33,7 @@ jobs: python-version: ["3.11"] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - uses: actions-ext/python/setup@main with: diff --git a/.gitignore b/.gitignore index 4e49d21..343bfcb 100644 --- a/.gitignore +++ b/.gitignore @@ -138,11 +138,16 @@ js/coverage js/dist js/lib js/node_modules +js/test-results +js/playwright-report 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 diff --git a/Makefile b/Makefile index bcc255e..78635dd 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_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 ################ @@ -88,7 +100,7 @@ dist-check: ## run python dist checker with twine dist: clean dist-build dist-check ## build all dists -publish: dist # publish python assets +publish: dist ## publish python assets ######### # CLEAN # diff --git a/README.md b/README.md index 841ac23..7e26a52 100644 --- a/README.md +++ b/README.md @@ -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). diff --git a/pyproject.toml b/pyproject.toml index 8c2f4aa..a02cc7e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", @@ -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"