From fbad233613b35fcdb16089b72578c62cd46c0676 Mon Sep 17 00:00:00 2001 From: "python-templates-copier-update[bot]" Date: Sun, 11 Oct 2026 11:13:48 +0000 Subject: [PATCH 1/2] Update from Copier (2026-10-11T11-13-45Z) Signed-off-by: python-templates-copier-update[bot] --- .copier-answers.yaml | 2 +- Makefile | 12 +++++++++++- pyproject.toml | 3 ++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.copier-answers.yaml b/.copier-answers.yaml index e25be07..7bd923b 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 3875db8..d900dd2 100644 --- a/Makefile +++ b/Makefile @@ -60,16 +60,26 @@ lint-py: ## lint python with ruff python -m ruff format --check verilator lint-docs: ## lint docs with mdformat and codespell +<<<<<<< before updating 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) +>>>>>>> after updating fix-py: ## autoformat python code with ruff python -m ruff check --fix verilator python -m ruff format verilator fix-docs: ## autoformat docs with mdformat and codespell +<<<<<<< before updating 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) +>>>>>>> after updating lint: lint-py lint-docs ## run all linters lints: lint @@ -87,7 +97,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 397fcf4..fe840f3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,6 +44,7 @@ develop = [ "codespell", "hatchling", "mdformat", + "mdformat-frontmatter", "mdformat-tables>=1", "pytest", "pytest-cov", @@ -102,7 +103,7 @@ skip = "*win32 *arm_64" [tool.coverage.run] branch = true omit = [ - "verilator/tests/integration/", + "verilator/tests/integration/*", ] [tool.coverage.report] From a259e7ba509fb7290ea366b1e7ad115f396cf7f0 Mon Sep 17 00:00:00 2001 From: Tim Paine <3105306+timkpaine@users.noreply.github.com> Date: Sun, 11 Oct 2026 14:39:07 -0400 Subject: [PATCH 2/2] Resolve Copier conflicts and type checks Signed-off-by: Tim Paine <3105306+timkpaine@users.noreply.github.com> --- Makefile | 20 +++++--------------- pyproject.toml | 1 + verilator/cli.py | 9 ++++----- 3 files changed, 10 insertions(+), 20 deletions(-) diff --git a/Makefile b/Makefile index d900dd2..c59c50e 100644 --- a/Makefile +++ b/Makefile @@ -60,26 +60,16 @@ lint-py: ## lint python with ruff python -m ruff format --check verilator lint-docs: ## lint docs with mdformat and codespell -<<<<<<< before updating - 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) ->>>>>>> after updating + 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 verilator python -m ruff format verilator fix-docs: ## autoformat docs with mdformat and codespell -<<<<<<< before updating - 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) ->>>>>>> after updating + 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 @@ -95,7 +85,7 @@ 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 check-types diff --git a/pyproject.toml b/pyproject.toml index fe840f3..196a932 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,6 +51,7 @@ develop = [ "ruff", "twine", "ty", + "typer", "uv", "wheel", ] diff --git a/verilator/cli.py b/verilator/cli.py index e956445..56e6c4f 100644 --- a/verilator/cli.py +++ b/verilator/cli.py @@ -5,7 +5,6 @@ from subprocess import Popen from sys import argv, exit, stderr, stdout from time import sleep -from typing import List @lru_cache(maxsize=1) @@ -61,16 +60,16 @@ def verilator(argv): def build( - input: List[str], + input: list[str], output: str = "obj_dir", - includes: List[str] = None, + includes: list[str] | None = None, timing: bool = True, trace: bool = True, assert_: bool = True, cc: bool = True, build: bool = True, - exe: str = None, - top_module: str = None, + exe: str | None = None, + top_module: str | None = None, ): """Utility to build a verilated module""" includes = includes or []