Skip to content

Commit f988ffb

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7cda078 commit f988ffb

2 files changed

Lines changed: 17 additions & 23 deletions

File tree

pyproject.toml

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -40,28 +40,21 @@ optional-dependencies.tests = [
4040
"pytest",
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,21 @@ 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 = [
99+
[tool.mypy]
100+
pretty = true
101+
strict = true
102+
show_error_codes = true
103+
104+
[tool.pytest]
105+
ini_options.addopts = "--color=yes"
106+
ini_options.filterwarnings = [
109107
"error",
110108
]
111-
testpaths = [ "tests" ]
109+
ini_options.testpaths = [ "tests" ]
112110

113-
[tool.coverage.report]
111+
[tool.coverage]
114112
# Regexes for lines to exclude from consideration
115-
exclude_also = [
113+
report.exclude_also = [
116114
# Don't complain if non-runnable code isn't run:
117115
"if __name__ == .__main__.:",
118116
]
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)