File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Pre-commit Checks
2+
3+ on :
4+ pull_request :
5+ branches : [ main ]
6+ workflow_dispatch :
7+
8+ permissions :
9+ contents : read
10+
11+ jobs :
12+ pre-commit :
13+ name : Run pre-commit hooks
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - name : Checkout repo
18+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
19+ with :
20+ persist-credentials : false
21+
22+ - name : Set up Python
23+ uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
24+ with :
25+ python-version : ' 3.12'
26+ cache : ' pip'
27+
28+ - name : Install pre-commit
29+ run : pip install pre-commit
30+
31+ - name : Run pre-commit
32+ run : pre-commit run --all-files --show-diff-on-failure
Original file line number Diff line number Diff line change @@ -179,7 +179,10 @@ celerybeat.pid
179179* .sage.py
180180
181181# Environments
182+ # Local environment files may contain credentials
182183.env
184+ .env. *
185+ ! .env.example
183186.venv
184187env /
185188venv /
Original file line number Diff line number Diff line change 1+ repos :
2+ - repo : https://github.com/zizmorcore/zizmor-pre-commit
3+ rev : v1.25.2
4+ hooks :
5+ - id : zizmor
6+ exclude : ^\.github/workflows/run-samples\.yml$
7+
8+ - repo : https://github.com/gitleaks/gitleaks
9+ rev : v8.30.1
10+ hooks :
11+ - id : gitleaks
Original file line number Diff line number Diff line change 11-r requirements-runtime.txt
2+ pre-commit
23pytest
34pytest-xdist
45pytest-timeout
You can’t perform that action at this time.
0 commit comments