mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
In Python 3.12 PEP 632 [0] kicks into effect and removes distutils from the standard libraries. This has downstream effects with older versions of pip (23.1.x) now broken at its core and unable to install anything. As the current low-bound of `virtualenv` installs 23.1.x of pip when you use pre-commit + python 3.12 you also break all your hooks. Since its not normal to explicit set the dependency of `virtualenv` we should increase the lower bounds to also make `pre-commit` PEP 632 compatible. [0] https://peps.python.org/pep-0632/#migration-advice
63 lines
1.4 KiB
INI
63 lines
1.4 KiB
INI
[metadata]
|
|
name = pre_commit
|
|
version = 3.7.0
|
|
description = A framework for managing and maintaining multi-language pre-commit hooks.
|
|
long_description = file: README.md
|
|
long_description_content_type = text/markdown
|
|
url = https://github.com/pre-commit/pre-commit
|
|
author = Anthony Sottile
|
|
author_email = asottile@umich.edu
|
|
license = MIT
|
|
license_files = LICENSE
|
|
classifiers =
|
|
License :: OSI Approved :: MIT License
|
|
Programming Language :: Python :: 3
|
|
Programming Language :: Python :: 3 :: Only
|
|
Programming Language :: Python :: Implementation :: CPython
|
|
Programming Language :: Python :: Implementation :: PyPy
|
|
|
|
[options]
|
|
packages = find:
|
|
install_requires =
|
|
cfgv>=2.0.0
|
|
identify>=1.0.0
|
|
nodeenv>=0.11.1
|
|
pyyaml>=5.1
|
|
virtualenv>=20.25.1
|
|
python_requires = >=3.9
|
|
|
|
[options.packages.find]
|
|
exclude =
|
|
tests*
|
|
testing*
|
|
|
|
[options.entry_points]
|
|
console_scripts =
|
|
pre-commit = pre_commit.main:main
|
|
|
|
[options.package_data]
|
|
pre_commit.resources =
|
|
*.tar.gz
|
|
empty_template_*
|
|
hook-tmpl
|
|
|
|
[bdist_wheel]
|
|
universal = True
|
|
|
|
[coverage:run]
|
|
plugins = covdefaults
|
|
omit = pre_commit/resources/*
|
|
|
|
[mypy]
|
|
check_untyped_defs = true
|
|
disallow_any_generics = true
|
|
disallow_incomplete_defs = true
|
|
disallow_untyped_defs = true
|
|
warn_redundant_casts = true
|
|
warn_unused_ignores = true
|
|
|
|
[mypy-testing.*]
|
|
disallow_untyped_defs = false
|
|
|
|
[mypy-tests.*]
|
|
disallow_untyped_defs = false
|