Skip to content

Commit

Permalink
fix: make pre_commit installable via test-requirements.txt (#17911)
Browse files Browse the repository at this point in the history
Fixes #17902
  • Loading branch information
gaurovgiri authored Oct 14, 2024
1 parent fc75ca7 commit f4f1667
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
1 change: 1 addition & 0 deletions test-requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ pytest-cov>=2.10.0
ruff==0.6.9 # must match version in .pre-commit-config.yaml
setuptools>=65.5.1
tomli>=1.1.0 # needed even on py311+ so the self check passes with --python-version 3.8
pre_commit>=3.5.0
22 changes: 20 additions & 2 deletions test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,22 @@ attrs==23.1.0
# via -r test-requirements.in
black==24.8.0
# via -r test-requirements.in
cfgv==3.4.0
# via pre-commit
click==8.1.7
# via black
coverage==7.3.2
# via pytest-cov
distlib==0.3.9
# via virtualenv
execnet==2.0.2
# via pytest-xdist
filelock==3.12.4
# via -r test-requirements.in
# via
# -r test-requirements.in
# virtualenv
identify==2.6.1
# via pre-commit
iniconfig==2.0.0
# via pytest
lxml==4.9.2 ; (python_version < "3.11" or sys_platform != "win32") and python_version < "3.12"
Expand All @@ -24,16 +32,22 @@ mypy-extensions==1.0.0
# via
# -r mypy-requirements.txt
# black
nodeenv==1.9.1
# via pre-commit
packaging==23.2
# via
# black
# pytest
pathspec==0.11.2
# via black
platformdirs==3.11.0
# via black
# via
# black
# virtualenv
pluggy==1.4.0
# via pytest
pre-commit==3.5.0
# via -r test-requirements.in
psutil==5.9.6
# via -r test-requirements.in
pytest==8.1.1
Expand All @@ -45,6 +59,8 @@ pytest-cov==4.1.0
# via -r test-requirements.in
pytest-xdist==3.3.1
# via -r test-requirements.in
pyyaml==6.0.2
# via pre-commit
ruff==0.6.9
# via -r test-requirements.in
tomli==2.0.1
Expand All @@ -55,6 +71,8 @@ types-setuptools==68.2.0.0
# via -r build-requirements.txt
typing-extensions==4.12.2
# via -r mypy-requirements.txt
virtualenv==20.26.6
# via pre-commit

# The following packages are considered to be unsafe in a requirements file:
setuptools==70.0.0
Expand Down

0 comments on commit f4f1667

Please sign in to comment.