From 900e996a92e9387fe2337ebd850ce77f407f0d4f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 20:54:29 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit suggestions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/crate-ci/typos: v1.47.0 → v1](https://github.com/crate-ci/typos/compare/v1.47.0...v1) - [github.com/astral-sh/ruff-pre-commit: v0.15.9 → v0.15.20](https://github.com/astral-sh/ruff-pre-commit/compare/v0.15.9...v0.15.20) - [github.com/pre-commit/mirrors-mypy: v1.20.0 → v2.1.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.20.0...v2.1.0) - [github.com/tox-dev/pyproject-fmt: v2.21.0 → v2.25.1](https://github.com/tox-dev/pyproject-fmt/compare/v2.21.0...v2.25.1) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b4a95c99..dd93758a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,7 @@ repos: - id: detect-private-key - repo: https://github.com/crate-ci/typos - rev: v1.47.0 + rev: v1 hooks: - id: typos # empty to do not write fixes @@ -67,7 +67,7 @@ repos: args: ["--print-width=79"] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.15.9 + rev: v0.15.20 hooks: # use black formatting - id: ruff-format @@ -79,13 +79,13 @@ repos: # it needs to be after formatting hooks because the lines might be changed - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.20.0 + rev: v2.1.0 hooks: - id: mypy files: "src/.*" - repo: https://github.com/tox-dev/pyproject-fmt - rev: v2.21.0 + rev: v2.25.1 hooks: - id: pyproject-fmt additional_dependencies: [tox] From effffed576ba30179a06fa9a9e40e73a195bb5b7 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 20:54:42 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyproject.toml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f35454c6..4c948114 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -71,8 +71,6 @@ urls.Source = "https://github.com/python-cachier/cachier" scripts.cachier = "cachier.__main__:cli" [tool.setuptools] -include-package-data = true -dynamic.version = { attr = "cachier._version.__version__" } packages.find.where = [ "src", ] # list of folders that contain the packages (["."] by default) @@ -80,6 +78,8 @@ packages.find.include = [ "cachier*", ] # package names should match these glob patterns (["*"] by default) packages.find.namespaces = false # to disable scanning PEP 420 namespaces (true by default) +include-package-data = true +dynamic.version = { attr = "cachier._version.__version__" } # === Linting & Formatting === [tool.black] @@ -173,8 +173,8 @@ ini_options.testpaths = [ "tests", ] ini_options.norecursedirs = [ - "dist", "build", + "dist", ] ini_options.addopts = [ "--color=yes", @@ -185,17 +185,17 @@ ini_options.addopts = [ # Note: parallel execution is opt-in via -n/--numprocesses (pytest-xdist) ] ini_options.markers = [ - "mongo: test the MongoDB core", + "asyncio: marks tests as async", + "flaky: tests that are known to be flaky and should be retried", + "maxage: test the max_age functionality", "memory: test the memory core", + "mongo: test the MongoDB core", "pickle: test the pickle core", "redis: test the Redis core", - "sql: test the SQL core", "s3: test the S3 core", - "maxage: test the max_age functionality", - "asyncio: marks tests as async", - "smoke: fast smoke tests with no external service dependencies", - "flaky: tests that are known to be flaky and should be retried", "seriallocal: local core tests that should run serially", + "smoke: fast smoke tests with no external service dependencies", + "sql: test the SQL core", ] [tool.coverage] @@ -206,7 +206,6 @@ ini_options.markers = [ # Pickle tests require isolation (handled by conftest.py fixture) # --- coverage --- run.branch = true -# dynamic_context = "test_function" run.omit = [ "**/scripts/**", "src/cachier/__init__.py", @@ -221,3 +220,4 @@ report.exclude_lines = [ "raise NotImplementedError", # Don't complain if tests don't hit defensive assertion code: ] report.show_missing = true +# dynamic_context = "test_function"