Skip to content

Commit

Permalink
Install pre-commit requirements with hashes
Browse files Browse the repository at this point in the history
Copy the existing pre-commit requirements files from the deprecated
pre-commit Docker image.

b/319510252
  • Loading branch information
oxve committed May 16, 2024
1 parent a837202 commit 5879fa6
Show file tree
Hide file tree
Showing 3 changed files with 310 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.7'
python-version: '3.8'
- name: Install Pip Packages
run: pip install -r ${GITHUB_WORKSPACE}/requirements.txt
run: pip install --require-hashes --no-deps -r ${GITHUB_WORKSPACE}/precommit_hooks/requirements.txt
- name: Download Resources
run: python ${GITHUB_WORKSPACE}/download_resources.py
- name: pre-commit
Expand Down
4 changes: 4 additions & 0 deletions precommit_hooks/requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pre-commit<3
cpplint<2
yapf<1
pylint<3
Loading

0 comments on commit 5879fa6

Please sign in to comment.