@@ -6,15 +6,13 @@ build-backend = "hatchling.build"
66name = " pre_commit_hooks"
77description = " A selection of pre-commit hooks for pre-commit.com."
88readme = " README.md"
9- requires-python = " >=3.8 "
9+ requires-python = " >=3.10 "
1010license = " GPL-3.0-or-later"
1111keywords = [" pre-commit" ]
1212authors = [{ name = " adehad" , email = " 26027314+adehad@users.noreply.github.com" }]
1313classifiers = [
1414 " Development Status :: 4 - Beta" ,
1515 " Programming Language :: Python" ,
16- " Programming Language :: Python :: 3.8" ,
17- " Programming Language :: Python :: 3.9" ,
1816 " Programming Language :: Python :: 3.10" ,
1917 " Programming Language :: Python :: 3.11" ,
2018 " Programming Language :: Python :: Implementation :: CPython" ,
@@ -67,19 +65,20 @@ lint = "python -m pre_commit run --color=always {args:--all-files}"
6765# Tests
6866# #######################################################################################
6967[[tool .hatch .envs .test .matrix ]]
70- python = [" 38 " , " 39 " , " 310" , " 311" ]
68+ python = [" 310" , " 311" ]
7169
7270# #######################################################################################
7371# External Tool Config
7472# #######################################################################################
7573[tool .mypy ]
76- python_version = ' 3.8 '
74+ python_version = ' 3.10 '
7775strict = true
7876ignore_missing_imports = true
7977namespace_packages = true
8078show_error_codes = true
8179strict_optional = true
8280warn_unused_configs = true
81+ exclude = [" tests/" ]
8382
8483[tool .coverage .run ]
8584branch = true
@@ -89,7 +88,7 @@ omit = ["src/pre_commit_hooks/__about__.py"]
8988[tool .coverage .report ]
9089exclude_lines = [" no cov" , " if __name__ == .__main__.:" , " if TYPE_CHECKING:" ]
9190
92- [tool .ruff ]
91+ [tool .ruff . lint ]
9392select = [
9493 " E" , # pycodestyle
9594 " W" , # pycodestyle
@@ -101,22 +100,23 @@ select = [
101100]
102101ignore = []
103102
104- # Same as Black.
105- line-length = 88
106-
107103# Allow unused variables when underscore-prefixed.
108104dummy-variable-rgx = " ^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
109105
110- # Assume Python 3.8. (minimum supported)
111- target-version = " py38"
106+ [tool .ruff ]
107+ # Same as Black.
108+ line-length = 88
109+
110+ # Assume Python 3.10. (minimum supported)
111+ target-version = " py310"
112112
113113# The source code paths to consider, e.g., when resolving first- vs. third-party imports
114114src = [" pre_commit_hooks" , " tests" ]
115115
116- [tool .ruff .isort ]
116+ [tool .ruff .lint . isort ]
117117known-first-party = [" pre_commit_hooks" , " tests" ]
118118required-imports = [" from __future__ import annotations" ]
119119
120- [tool .ruff .pydocstyle ]
120+ [tool .ruff .lint . pydocstyle ]
121121# Use Google-style docstrings.
122122convention = " google"
0 commit comments