diff --git a/.copier-answers.yaml b/.copier-answers.yaml index b375251..34c3dd0 100644 --- a/.copier-answers.yaml +++ b/.copier-answers.yaml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier -_commit: ebb6e1c +_commit: '4372075' _src_path: https://github.com/python-project-templates/base.git add_docs: true add_extension: js diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 143a4af..3e18204 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -15,7 +15,7 @@ on: workflow_dispatch: concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true permissions: diff --git a/Makefile b/Makefile index f009499..a388fb1 100644 --- a/Makefile +++ b/Makefile @@ -43,8 +43,8 @@ lint-js: ## run js linter cd js; pnpm lint lint-docs: ## lint docs with mdformat and codespell - python -m mdformat --check README.md docs/wiki/ - python -m codespell_lib README.md docs/wiki/ + python -m mdformat --check README.md $(wildcard docs/src) docs/wiki/ + python -m codespell_lib README.md $(wildcard docs/src) docs/wiki/ lint: lint-js lint-py lint-docs ## run project linters @@ -60,8 +60,8 @@ fix-js: ## fix js formatting cd js; pnpm fix fix-docs: ## autoformat docs with mdformat and codespell - python -m mdformat README.md docs/wiki/ - python -m codespell_lib --write README.md docs/wiki/ + python -m mdformat README.md $(wildcard docs/src) docs/wiki/ + python -m codespell_lib --write README.md $(wildcard docs/src) docs/wiki/ fix: fix-js fix-py fix-docs ## run project autoformatters @@ -79,7 +79,7 @@ check-dist: ## check python sdist and wheel with check-dist check-types: ## check python types with ty ty check --python $$(which python) -checks: check-dist +checks: check-dist check-types # alias check: checks diff --git a/pyproject.toml b/pyproject.toml index 7f1160d..bafeb64 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,6 +40,7 @@ develop = [ "hatch-js", "hatchling", "mdformat", + "mdformat-frontmatter", "mdformat-tables>=1", "pytest", "pytest-cov", @@ -84,7 +85,7 @@ replace = '"version": "{new_version}"' [tool.coverage.run] branch = true omit = [ - "python_template_js/tests/integration/", + "python_template_js/tests/integration/*", ] [tool.coverage.report]