Skip to content

Commit 06ff6dd

Browse files
authored
feat: add pre-commit to ci (#131)
* feat: add pre-commit to ci * fix: ci * fix: run-pre-commit
1 parent 14c787c commit 06ff6dd

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@ on:
88
workflow_dispatch:
99

1010
jobs:
11+
pre-commit:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-python@v3
16+
- uses: pre-commit/action@v3.0.1
1117
test:
1218
runs-on: ${{ matrix.os }}
1319
strategy:

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ ci-proxy:
3333

3434
ci: ci-static ci-proxy
3535

36+
pre-commit:
37+
uv sync
38+
uv pip install pre-commit
39+
uv run pre-commit run --all-files
40+
3641
clean:
3742
rm -rf ./dist
3843
rm -rf ./mcp_scan/mcp_scan.egg-info

0 commit comments

Comments
 (0)