Skip to content

Commit 98faa34

Browse files
committed
ci: Add lint workflow
1 parent 1857939 commit 98faa34

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/lint.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Lint
2+
on: [push, pull_request]
3+
jobs:
4+
build:
5+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
- uses: actions/setup-python@v5
10+
with:
11+
python-version: '3.10'
12+
- run: pip install --upgrade flake8 isort
13+
- run: flake8 .
14+
- run: isort .

0 commit comments

Comments
 (0)