Skip to content

Commit

Permalink
Merge pull request #475 from jakob-keller/dependencies
Browse files Browse the repository at this point in the history
Bump dev dependencies
  • Loading branch information
jakob-keller authored Feb 18, 2025
2 parents a825528 + 8ac1eb5 commit e32518d
Show file tree
Hide file tree
Showing 6 changed files with 129 additions and 120 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,20 @@ repos:
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.5.24
rev: 0.6.1
hooks:
- id: uv-lock
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.3
rev: v0.9.6
hooks:
- id: ruff-format
- id: ruff
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.14.1
rev: v1.15.0
hooks:
- id: mypy
additional_dependencies: [orjson]
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.1.1
rev: v4.2.1
hooks:
- id: commitizen
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
UV_NO_PROGRESS = 1

environment:
uv sync --frozen
uv run pre-commit install

bump_dependencies:
uv sync --upgrade
uv run pre-commit autoupdate
uv run pre-commit autoupdate --jobs 10
uv pip list --outdated

check:
Expand Down
12 changes: 8 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ dependencies = [
[dependency-groups]
dev = [
"coverage[toml] >=7.2.1,<8.0.0",
"mypy[faster-cache] >=1.1.1,<2.0.0",
"mypy[faster-cache] >=1.15.0,<2.0.0",
"pre-commit >=4.0.1,<5.0.0",
"pdoc3 >=0.11.1,<0.12.0",
"pytest >=8.0.0,<9.0.0",
"pytest-cov >=6.0.0,<7.0.0",
"ruff >=0.9.0,<0.10.0",
"ruff >=0.9.6,<0.10.0",
]

[project.urls]
Expand Down Expand Up @@ -97,12 +97,12 @@ addopts = "--doctest-modules --import-mode=importlib"
filterwarnings = [
"error",
]
minversion = "7.2"
minversion = "8.0"
xfail_strict = true


[tool.ruff]
required-version = ">=0.6.0"
required-version = ">=0.9.6"
target-version = "py310"

[tool.ruff.lint]
Expand Down Expand Up @@ -130,3 +130,7 @@ allow-star-arg-any = true
[tool.ruff.lint.isort]
combine-as-imports = true
force-wrap-aliases = true


[tool.uv]
required-version = ">=0.6.1"
1 change: 1 addition & 0 deletions tests/datetime/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# noqa: A005
2 changes: 1 addition & 1 deletion tests/datetime/test_period.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def test_init_and_properties(

match expected:
case (duration, midpoint):
assert period.duration == duration # type: ignore[unreachable]
assert period.duration == duration
assert period.midpoint == midpoint
case _:
with pytest.raises(expected):
Expand Down
Loading

0 comments on commit e32518d

Please sign in to comment.