@@ -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"
4345urls.Documentation = " https://humanize.readthedocs.io/"
4446urls.Funding = " https://tidelift.com/subscription/pkg/pypi-humanize?utm_source=pypi-humanize&utm_medium=pypi"
4547urls.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"
4848urls.Source = " https://github.com/python-humanize/humanize"
4949
5050[tool .hatch ]
5151version.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 ]
6357fix = true
64-
6558lint.select = [
6659 " C4" , # flake8-comprehensions
6760 " D" , # pydocstyle
@@ -103,21 +96,21 @@ lint.future-annotations = true
10396[tool .pyproject-fmt ]
10497max_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
0 commit comments