Skip to content

Commit

Permalink
Updates development tool versions and pre-commit hook versions
Browse files Browse the repository at this point in the history
  • Loading branch information
stumpylog committed Sep 30, 2024
1 parent ebaf57c commit 601a6dd
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 17 deletions.
7 changes: 4 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
20 changes: 10 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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]
Expand All @@ -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]
Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 601a6dd

Please sign in to comment.