Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Sun, Xuehao <[email protected]>
  • Loading branch information
XuehaoSun committed Aug 13, 2024
1 parent cd7ca5c commit e0ff4a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ repos:
- id: cpplint
- id: include-what-you-use

- repo: local
- repo: https://github.com/jazzband/pip-tools
rev: 7.4.1
hooks:
- id: freeze-requirements
- id: pip-compile
# - id: freeze-requirements
name: freeze requirements
entry: bash test.sh
language: system
Expand Down
1 change: 0 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ function check_branch_name() {

function main() {
check_branch_name
pip install pip-tools --upgrade
export -f freeze
find . -name "requirements.txt" | xargs -n 1 -I {} bash -c 'freeze "$@"' _ {}
exit 1
Expand Down

0 comments on commit e0ff4a6

Please sign in to comment.