Skip to content

Commit ebbd6cc

Browse files
committed
build: update pre commit hook and enable github actions
1 parent 9cac4e8 commit ebbd6cc

3 files changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/pre-commit.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Pre-commit
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
pre-commit:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v5
14+
with:
15+
submodules: recursive
16+
17+
- name: Install uv
18+
uses: astral-sh/setup-uv@v6
19+
20+
- name: Install Python
21+
run: uv python install
22+
23+
- name: Install dependencies
24+
run: uv sync --dev --locked
25+
26+
- name: Run pre-commit
27+
run: uv run pre-commit run --all-files

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
exclude: ^external/
2+
13
repos:
24
- repo: local
35
hooks:

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ dev = [
2424
[tool.ruff]
2525
line-length = 100
2626
target-version = "py312"
27+
extend-exclude = ["external"]
28+
2729
[tool.ruff.lint]
2830
select = ["E", "F", "B", "I", "C90", "UP", "RUF"]
2931
ignore = [

0 commit comments

Comments
 (0)