Skip to content

Commit 5a3c143

Browse files
committed
add pre-commit ci
1 parent 857a23b commit 5a3c143

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Diff for: .github/workflows/lint.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Run Pre-commits
2+
3+
env:
4+
# enable colored output
5+
# https://github.com/pytest-dev/pytest/issues/7443
6+
PY_COLORS: 1
7+
8+
on:
9+
push:
10+
branches: ["main"]
11+
pull_request:
12+
workflow_dispatch:
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
static_analysis:
19+
timeout-minutes: 1
20+
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
- name: Set up Python
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: "3.12"
29+
- name: Run pre-commit
30+
uses: pre-commit/[email protected]

0 commit comments

Comments
 (0)