Skip to content

Commit

Permalink
Add pip-tools to pre-commit configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianonicolai committed Jan 18, 2024
1 parent e9b2136 commit ca91e3f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 18 deletions.
1 change: 0 additions & 1 deletion .config/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
black
mypy
pip-tools
pre-commit
pydoclint
pytest
Expand Down
19 changes: 2 additions & 17 deletions .config/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,36 +1,21 @@
#
# This file is autogenerated by pip-compile with Python 3.11
# This file is autogenerated by pip-compile with Python 3.10
# by the following command:
#
# pip-compile --extra=docs --extra=test --no-annotate --output-file=requirements.txt --strip-extras
# pip-compile --no-annotate --output-file=.config/requirements.txt --strip-extras .config/requirements.in
#
ansible-builder==3.0.0
attrs==23.1.0
bindep==2.11.0
cachetools==5.3.1
chardet==5.2.0
colorama==0.4.6
coverage==7.4.0
distlib==0.3.7
distro==1.8.0
execnet==2.0.2
filelock==3.12.2
iniconfig==2.0.0
jsonschema==4.19.0
jsonschema-specifications==2023.7.1
packaging==23.1
parsley==1.3
pbr==5.11.1
platformdirs==3.10.0
pluggy==1.2.0
pyproject-api==1.5.3
pytest==7.4.0
pytest-xdist==3.3.1
pyyaml==6.0.1
referencing==0.30.2
requirements-parser==0.5.0
rpds-py==0.10.2
subprocess-tee==0.4.1
tox==4.9.0
types-setuptools==68.1.0.1
virtualenv==20.24.3
19 changes: 19 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
---
ci:
# format compatible with commitlint
autoupdate_commit_msg: "chore: pre-commit autoupdate"
autoupdate_schedule: monthly
autofix_commit_msg: |
chore: auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
skip:
- deps
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
Expand Down Expand Up @@ -95,3 +105,12 @@ repos:
- tests
- --python-version=3.11
pass_filenames: false
- repo: https://github.com/jazzband/pip-tools
rev: 7.3.0
hooks:
- id: pip-compile
name: deps
alias: deps
entry: pip-compile .config/requirements.in --no-annotate --strip-extras --output-file=.config/requirements.txt
files: ^.config\/.*requirements.*$
language_version: "3.10" # minimal we support officially

0 comments on commit ca91e3f

Please sign in to comment.