Skip to content

Commit 12b9b06

Browse files
ci(github): add workflow lint.yml
1 parent d14bcdf commit 12b9b06

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/lint.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: lint
2+
on: [push, pull_request]
3+
4+
jobs:
5+
lint:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout repository
9+
uses: actions/checkout@v4
10+
11+
- name: Use Python
12+
uses: actions/setup-python@v5
13+
with:
14+
cache: pip
15+
python-version: 3
16+
17+
- name: Install dependencies
18+
run: pip install -e .[test]
19+
20+
- name: Run Black
21+
run: black --check .
22+
23+
- name: Run pre-commit
24+
run: pre-commit run --all-files

0 commit comments

Comments
 (0)