forked from eigent-ai/eigent
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (32 loc) · 1001 Bytes
/
Copy pathpre-commit.yml
File metadata and controls
40 lines (32 loc) · 1001 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Pre-commit
'on':
push:
branches: [main, feat/workforce-bundle-product]
pull_request:
branches: [main, feat/workforce-bundle-product]
permissions:
contents: read
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install uv
uses: astral-sh/setup-uv@v4
- name: Install dev dependencies
run: uv sync --project backend --group dev
- name: Run pre-commit
run: |
uv run --project backend pre-commit run \
--config backend/.pre-commit-config.yaml --files $(git ls-files backend)
env:
SKIP: no-commit-to-branch,bandit-full
- name: Run full backend Bandit scan
run: >-
uv run --project backend pre-commit run bandit-full
--config backend/.pre-commit-config.yaml
--hook-stage manual --all-files