From 601a6dd9ff3e76ad3037c03d2ff29fb814d749cc Mon Sep 17 00:00:00 2001 From: stumpylog <797416+stumpylog@users.noreply.github.com> Date: Mon, 30 Sep 2024 08:36:33 -0700 Subject: [PATCH] Updates development tool versions and pre-commit hook versions --- .pre-commit-config.yaml | 7 ++++--- CHANGELOG.md | 1 + pyproject.toml | 20 ++++++++++---------- tests/conftest.py | 4 ++-- tests/utils.py | 4 ++-- 5 files changed, 19 insertions(+), 17 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 30e44d0..44760a9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,8 +28,9 @@ repos: - svg - id: check-case-conflict - id: detect-private-key - - repo: https://github.com/pre-commit/mirrors-prettier - rev: 'v3.1.0' + # See https://github.com/prettier/prettier/issues/15742 for the fork reason + - repo: https://github.com/rbubley/mirrors-prettier + rev: "v3.3.3" hooks: - id: prettier types_or: @@ -44,7 +45,7 @@ repos: - id: codespell # Python hooks - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.4.9' + rev: 'v0.6.8' hooks: # Run the linter. - id: ruff diff --git a/CHANGELOG.md b/CHANGELOG.md index 66d26b5..83ada4e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Bump pypa/gh-action-pypi-publish from 1.8.14 to 1.9.0 by @dependabot ([#25](https://github.com/stumpylog/gotenberg-client/pull/25)) - Bump pypa/gh-action-pypi-publish from 1.9.0 to 1.10.2 by @dependabot ([#31](https://github.com/stumpylog/gotenberg-client/pull/31)) - CI testing now runs against Gotenberg 8.11 ([#32](https://github.com/stumpylog/gotenberg-client/pull/32)) +- Development tool updates in `pyproject.toml` and pre-commit hook updates ## [0.6.0] - 2024-06-13 diff --git a/pyproject.toml b/pyproject.toml index 73fc3bb..f94a7ca 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -65,7 +65,7 @@ installer = "uv" [tool.hatch.envs.hatch-static-analysis] # https://hatch.pypa.io/latest/config/internal/static-analysis/ -dependencies = ["ruff ~= 0.4.9"] +dependencies = ["ruff ~= 0.6.8"] config-path = "none" [tool.hatch.envs.hatch-test] @@ -74,13 +74,13 @@ parallel = true randomize = true dependencies = [ "coverage-enable-subprocess == 1.0", - "coverage[toml] ~= 7.4", + "coverage[toml] ~= 7.6", "pytest < 8.0; python_version < '3.9'", - "pytest ~= 8.1; python_version >= '3.9'", - "pytest-mock ~= 3.12", + "pytest ~= 8.3; python_version >= '3.9'", + "pytest-mock ~= 3.14", "pytest-randomly ~= 3.15", "pytest-rerunfailures ~= 14.0", - "pytest-xdist[psutil] ~= 3.5", + "pytest-xdist[psutil] ~= 3.6", ] extra-dependencies = [ "pytest-sugar", @@ -117,7 +117,7 @@ python = ["3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.9", "pypy3.10"] [tool.hatch.envs.typing] detached = true dependencies = [ - "mypy ~= 1.10.0", + "mypy ~= 1.11", "httpx", "pytest", "pikepdf", @@ -134,7 +134,7 @@ run = [ template = "pre-commit" detached = true dependencies = [ - "pre-commit ~= 3.7.0", + "pre-commit ~= 3.8", ] [tool.hatch.envs.pre-commit.scripts] @@ -145,9 +145,9 @@ update = ["pre-commit autoupdate"] template = "docs" detached = true dependencies = [ - "mkdocs-material[imaging] ~= 9.5.26", - "mike ~= 2.1.0", - "mkdocs-minify-plugin ~= 0.7.1" + "mkdocs-material[imaging] ~= 9.5", + "mike ~= 2.1", + "mkdocs-minify-plugin ~= 0.8" ] [tool.hatch.envs.docs.scripts] diff --git a/tests/conftest.py b/tests/conftest.py index 5bfdd08..0e1cb44 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -24,13 +24,13 @@ SAVE_DIR.mkdir() -@pytest.fixture() +@pytest.fixture def client() -> Generator[GotenbergClient, None, None]: with GotenbergClient(host=GOTENBERG_URL, log_level=logging.INFO) as client: yield client -@pytest.fixture() +@pytest.fixture def temporary_dir() -> Generator[Path, None, None]: """ Creates and cleans up a temporary directory for tests diff --git a/tests/utils.py b/tests/utils.py index a6a7fb5..53f6e45 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -36,8 +36,8 @@ def extract_text(pdf_path: Path) -> str: with tempfile.NamedTemporaryFile( mode="w+", ) as tmp: - subprocess.run( - [ # noqa: S603 + subprocess.run( # noqa: S603 + [ pdf_to_text, "-q", "-layout",