@@ -16,14 +16,13 @@ license = "MIT"
1616license-files = [ " LICENCE" ]
1717maintainers = [ { name = " Hugo van Kemenade" } ]
1818authors = [ { name = " Jason Moiron" , email = " jmoiron@jmoiron.net" } ]
19- requires-python = " >=3.10 "
19+ requires-python = " >=3.11 "
2020classifiers = [
2121 " Development Status :: 5 - Production/Stable" ,
2222 " Intended Audience :: Developers" ,
2323 " Operating System :: OS Independent" ,
2424 " Programming Language :: Python" ,
2525 " Programming Language :: Python :: 3 :: Only" ,
26- " Programming Language :: Python :: 3.10" ,
2726 " Programming Language :: Python :: 3.11" ,
2827 " Programming Language :: Python :: 3.12" ,
2928 " Programming Language :: Python :: 3.13" ,
@@ -57,7 +56,7 @@ build.hooks.vcs.version-file = "src/humanize/_version.py"
5756
5857[tool .ruff ]
5958fix = true
60- lint.select = [
59+ lint.extend- select = [
6160 " C4" , # flake8-comprehensions
6261 " D" , # pydocstyle
6362 " E" , # pycodestyle errors
@@ -89,11 +88,13 @@ lint.ignore = [
8988]
9089lint.per-file-ignores."tests/*" = [
9190 " D" ,
91+ " DTZ" , # naive local datetimes are intentional
9292]
9393lint.flake8-import-conventions.aliases.datetime = " dt"
9494lint.flake8-import-conventions.banned-from = [ " datetime" ]
9595lint.flake8-pytest-style.parametrize-names-type = " csv"
96- lint.flake8-tidy-imports.banned-api."typing.TYPE_CHECKING".msg = " Use TYPE_CHECKING = False instead"
96+ lint.flake8-tidy-imports.banned-api."re.match".msg = " use re.fullmatch() or re.search() instead"
97+ lint.flake8-tidy-imports.banned-api."typing.TYPE_CHECKING".msg = " use TYPE_CHECKING = False instead"
9798lint.isort.known-first-party = [ " humanize" ]
9899lint.isort.required-imports = [ " from __future__ import annotations" ]
99100lint.pydocstyle.convention = " google"
@@ -115,6 +116,8 @@ minversion = "9.0"
115116testpaths = [ " tests" ]
116117
117118[tool .coverage ]
119+ run.disable_warnings = [ " no-sysmon" ] # 3.11
120+ run.core = " sysmon" # default for 3.14+, available for 3.12+
118121# Regexes for lines to exclude from consideration
119122report.exclude_also = [
120123 # Don't complain if non-runnable code isn't run:
0 commit comments