Skip to content

Commit 7697fe8

Browse files
committed
chore: add Lint action
1 parent 5674d4c commit 7697fe8

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

.github/workflows/lint.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
jobs:
8+
lint:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v6
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v6
17+
with:
18+
python-version: "3.13"
19+
cache: "poetry"
20+
21+
- name: Install Poetry
22+
uses: snok/install-poetry@v1
23+
with:
24+
virtualenvs-create: true
25+
virtualenvs-in-project: true
26+
installer-parallel: true
27+
28+
- name: Install dependencies
29+
run: |
30+
poetry install --no-interaction --no-root
31+
32+
- name: Run black
33+
run: |
34+
poetry run black --check app
35+
36+
- name: Run isort
37+
run: |
38+
poetry run isort --check-only app
39+
40+
- name: Run flake8
41+
run: |
42+
poetry run flake8 app
43+
44+
- name: Run mypy
45+
run: |
46+
poetry run mypy app
47+
48+
- name: Run pylint
49+
run: |
50+
poetry run pylint app

0 commit comments

Comments
 (0)