diff --git a/.copier-answers.yaml b/.copier-answers.yaml index 1a3d00a..cad5c3e 100644 --- a/.copier-answers.yaml +++ b/.copier-answers.yaml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier -_commit: 5ff720b +_commit: '4372075' _src_path: https://github.com/python-project-templates/base.git add_docs: false add_extension: python diff --git a/Makefile b/Makefile index e6fd07d..4aef12e 100644 --- a/Makefile +++ b/Makefile @@ -44,16 +44,16 @@ lint-py: ## lint python with ruff python -m ruff format --check openfpgaloader lint-docs: ## lint docs with mdformat and codespell - python -m mdformat --check README.md - python -m codespell_lib README.md + python -m mdformat --check README.md $(wildcard docs/src) + python -m codespell_lib README.md $(wildcard docs/src) fix-py: ## autoformat python code with ruff python -m ruff check --fix openfpgaloader python -m ruff format openfpgaloader fix-docs: ## autoformat docs with mdformat and codespell - python -m mdformat README.md - python -m codespell_lib --write README.md + python -m mdformat README.md $(wildcard docs/src) + python -m codespell_lib --write README.md $(wildcard docs/src) lint: lint-py lint-docs ## run all linters lints: lint @@ -69,9 +69,9 @@ check-dist: ## check python sdist and wheel with check-dist check-dist -v check-types: ## check python types with ty - ty check --python $$(which python) + python -m ty check -checks: check-dist +checks: check-dist check-types # Alias check: checks diff --git a/openfpgaloader/tests/test_basic.py b/openfpgaloader/tests/test_basic.py index 3189424..782f71e 100644 --- a/openfpgaloader/tests/test_basic.py +++ b/openfpgaloader/tests/test_basic.py @@ -1,7 +1,7 @@ def test_import(): import openfpgaloader - assert openfpgaloader.__version__ + assert isinstance(openfpgaloader.__version__, str) def test_cli_import(): diff --git a/pyproject.toml b/pyproject.toml index 59f8bdc..121a0e3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,6 +41,7 @@ develop = [ "codespell", "hatchling", "mdformat", + "mdformat-frontmatter", "mdformat-tables>=1", "pytest", "pytest-cov", @@ -98,7 +99,7 @@ skip = "*win32 *arm_64" [tool.coverage.run] branch = true omit = [ - "openfpgaloader/tests/integration/", + "openfpgaloader/tests/integration/*", ] [tool.coverage.report]