From ea4c0f548bc74511b89d9bdba1adfcee255d6d56 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Jun 2026 17:08:49 +0000 Subject: [PATCH 1/2] chore(pre-commit.ci): pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/commitizen-tools/commitizen: v4.13.9 → v4.16.3](https://github.com/commitizen-tools/commitizen/compare/v4.13.9...v4.16.3) - [github.com/tox-dev/pyproject-fmt: v2.18.1 → v2.23.0](https://github.com/tox-dev/pyproject-fmt/compare/v2.18.1...v2.23.0) - [github.com/astral-sh/uv-pre-commit: 0.10.2 → 0.11.17](https://github.com/astral-sh/uv-pre-commit/compare/0.10.2...0.11.17) - [github.com/pre-commit/mirrors-prettier: v3.1.0 → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v3.1.0...v4.0.0-alpha.8) - [github.com/astral-sh/ruff-pre-commit: v0.15.1 → v0.15.15](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.1...v0.15.15) - [github.com/pre-commit/mirrors-mypy: v1.19.1 → v2.1.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.19.1...v2.1.0) - [github.com/34j/sync-python-matrix: d114faa → d114faafeb9c187a37379d34256d3efc6042e187](https://github.com/34j/sync-python-matrix/compare/d114faa...d114faafeb9c187a37379d34256d3efc6042e187) --- .pre-commit-config.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 553ffa1..3500d28 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ ci: repos: - repo: https://github.com/commitizen-tools/commitizen - rev: v4.13.9 + rev: v4.16.3 hooks: - id: commitizen stages: [commit-msg] @@ -28,20 +28,20 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/tox-dev/pyproject-fmt - rev: "v2.18.1" + rev: "v2.23.0" hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/uv-pre-commit - rev: 0.10.2 + rev: 0.11.17 hooks: - id: uv-lock - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.1.0 + rev: v4.0.0-alpha.8 hooks: - id: prettier args: ["--tab-width", "2"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.1 + rev: v0.15.15 hooks: - id: ruff-check args: [--fix, --exit-non-zero-on-fix, --unsafe-fixes] @@ -51,11 +51,11 @@ repos: hooks: - id: codespell - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.19.1 + rev: v2.1.0 hooks: - id: mypy additional_dependencies: [types-dateparser, attrs, types-requests] - repo: https://github.com/34j/sync-python-matrix - rev: "d114faa" # Use the sha / tag you want to point at + rev: "d114faafeb9c187a37379d34256d3efc6042e187" # Use the sha / tag you want to point at hooks: - id: sync-python-matrix From 6bb835d64650a67260303cdf4ebabf17c483d990 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Jun 2026 17:09:42 +0000 Subject: [PATCH 2/2] chore(pre-commit.ci): auto fixes --- pyproject.toml | 40 +++++++++++++++++++-------------------- tests/test_dunder_main.py | 2 +- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 0adab76..8b50bfd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -93,9 +93,25 @@ lint.isort.known-first-party = [ "aoiro", "tests" ] [tool.pyproject-fmt] max_supported_python = "3.14" +[tool.mypy] +mypy_path = "src/" +exclude = [ + "docs/.*", + "setup.py", +] +disallow_any_generics = true +disallow_untyped_defs = true +disallow_incomplete_defs = true +check_untyped_defs = true +warn_unused_ignores = true +warn_unreachable = true +overrides = [ { module = "tests.*", allow_untyped_defs = true }, { module = "docs.*", ignore_errors = true } ] +no_implicit_optional = true +show_error_codes = true + [tool.pytest] -minversion = "9.0" addopts = [ "-v", "-Wonce", "-p no:doctest", "--cov=aoiro", "--cov-report=term", "--cov-report=xml" ] +minversion = "9.0" pythonpath = [ "src" ] [tool.coverage] @@ -112,28 +128,12 @@ report.exclude_lines = [ "raise NotImplementedError", ] -[tool.mypy] -check_untyped_defs = true -disallow_any_generics = true -disallow_incomplete_defs = true -disallow_untyped_defs = true -mypy_path = "src/" -no_implicit_optional = true -show_error_codes = true -warn_unreachable = true -warn_unused_ignores = true -exclude = [ - "docs/.*", - "setup.py", -] -overrides = [ { module = "tests.*", allow_untyped_defs = true }, { module = "docs.*", ignore_errors = true } ] - [tool.semantic_release] -version_toml = [ "pyproject.toml:project.version" ] version_variables = [ - "src/aoiro/__init__.py:__version__", "docs/conf.py:release", + "src/aoiro/__init__.py:__version__", ] +version_toml = [ "pyproject.toml:project.version" ] build_command = """ pip install uv uv lock @@ -143,6 +143,7 @@ uv build branches.main.match = "main" branches.noop.match = "(?!main$)" branches.noop.prerelease = true +changelog.environment.keep_trailing_newline = true changelog.exclude_commit_patterns = [ "chore(?:\\([^)]*?\\))?: .+", "ci(?:\\([^)]*?\\))?: .+", @@ -153,4 +154,3 @@ changelog.exclude_commit_patterns = [ "Merged? .*", "Initial [Cc]ommit.*", # codespell:ignore ] -changelog.environment.keep_trailing_newline = true diff --git a/tests/test_dunder_main.py b/tests/test_dunder_main.py index d013ab3..7a86828 100644 --- a/tests/test_dunder_main.py +++ b/tests/test_dunder_main.py @@ -4,7 +4,7 @@ def test_can_run_as_python_module(): """Run the CLI as a Python module.""" - result = subprocess.run( # noqa: S603 + result = subprocess.run( [sys.executable, "-m", "aoiro", "--help"], check=True, capture_output=True,