Skip to content

Commit 4898365

Browse files
[pre-commit.ci] pre-commit autoupdate (#306)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent 38532ba commit 4898365

File tree

3 files changed

+27
-34
lines changed

3 files changed

+27
-34
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.14.10
3+
rev: v0.15.9
44
hooks:
55
- id: ruff-check
66
args: [--exit-non-zero-on-fix]
77

88
- repo: https://github.com/psf/black-pre-commit-mirror
9-
rev: 25.12.0
9+
rev: 26.3.1
1010
hooks:
1111
- id: black
1212

@@ -27,28 +27,28 @@ repos:
2727
exclude: \.github/ISSUE_TEMPLATE\.md|\.github/PULL_REQUEST_TEMPLATE\.md
2828

2929
- repo: https://github.com/python-jsonschema/check-jsonschema
30-
rev: 0.36.0
30+
rev: 0.37.1
3131
hooks:
3232
- id: check-github-workflows
3333
- id: check-renovate
3434

3535
- repo: https://github.com/rhysd/actionlint
36-
rev: v1.7.10
36+
rev: v1.7.12
3737
hooks:
3838
- id: actionlint
3939

40-
- repo: https://github.com/woodruffw/zizmor-pre-commit
41-
rev: v1.19.0
40+
- repo: https://github.com/zizmorcore/zizmor-pre-commit
41+
rev: v1.23.1
4242
hooks:
4343
- id: zizmor
4444

4545
- repo: https://github.com/tox-dev/pyproject-fmt
46-
rev: v2.11.1
46+
rev: v2.21.0
4747
hooks:
4848
- id: pyproject-fmt
4949

5050
- repo: https://github.com/abravalheri/validate-pyproject
51-
rev: v0.24.1
51+
rev: v0.25
5252
hooks:
5353
- id: validate-pyproject
5454

@@ -63,7 +63,7 @@ repos:
6363
- id: yamlfmt
6464

6565
- repo: https://github.com/rbubley/mirrors-prettier
66-
rev: v3.7.4
66+
rev: v3.8.1
6767
hooks:
6868
- id: prettier
6969
args: [--prose-wrap=always, --print-width=88]

pyproject.toml

Lines changed: 17 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -37,31 +37,24 @@ classifiers = [
3737
dynamic = [ "version" ]
3838
optional-dependencies.tests = [
3939
"freezegun",
40-
"pytest",
40+
"pytest>=9",
4141
"pytest-cov",
4242
]
43+
urls."Issue tracker" = "https://github.com/python-humanize/humanize/issues"
44+
urls."Release notes" = "https://github.com/python-humanize/humanize/releases"
4345
urls.Documentation = "https://humanize.readthedocs.io/"
4446
urls.Funding = "https://tidelift.com/subscription/pkg/pypi-humanize?utm_source=pypi-humanize&utm_medium=pypi"
4547
urls.Homepage = "https://github.com/python-humanize/humanize"
46-
urls."Issue tracker" = "https://github.com/python-humanize/humanize/issues"
47-
urls."Release notes" = "https://github.com/python-humanize/humanize/releases"
4848
urls.Source = "https://github.com/python-humanize/humanize"
4949

5050
[tool.hatch]
5151
version.source = "vcs"
52-
53-
[tool.hatch.build]
54-
artifacts = [ "*.mo" ]
55-
56-
[tool.hatch.build.hooks.vcs]
57-
version-file = "src/humanize/_version.py"
58-
59-
[tool.hatch.version.raw-options]
60-
local_scheme = "no-local-version"
52+
version.raw-options.local_scheme = "no-local-version"
53+
build.artifacts = [ "*.mo" ]
54+
build.hooks.vcs.version-file = "src/humanize/_version.py"
6155

6256
[tool.ruff]
6357
fix = true
64-
6558
lint.select = [
6659
"C4", # flake8-comprehensions
6760
"D", # pydocstyle
@@ -103,21 +96,20 @@ lint.future-annotations = true
10396
[tool.pyproject-fmt]
10497
max_supported_python = "3.15"
10598

106-
[tool.pytest.ini_options]
107-
addopts = "--color=yes"
108-
filterwarnings = [
109-
"error",
110-
]
99+
[tool.mypy]
100+
pretty = true
101+
strict = true
102+
show_error_codes = true
103+
104+
[tool.pytest]
105+
minversion = "9.0"
106+
addopts = [ "--color=yes" ]
111107
testpaths = [ "tests" ]
108+
filterwarnings = [ "error" ]
112109

113-
[tool.coverage.report]
110+
[tool.coverage]
114111
# Regexes for lines to exclude from consideration
115-
exclude_also = [
112+
report.exclude_also = [
116113
# Don't complain if non-runnable code isn't run:
117114
"if __name__ == .__main__.:",
118115
]
119-
120-
[tool.mypy]
121-
pretty = true
122-
strict = true
123-
show_error_codes = true

tests/test_filesize.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env python
22

33
"""Tests for filesize humanizing."""
4+
45
from __future__ import annotations
56

67
import pytest

0 commit comments

Comments
 (0)