Skip to content

Commit ea93cd0

Browse files
authored
Add linting and format (#155)
* feat: Add ruff and mypy checks * chore: Format files * fix: Correct minor linting finds * feat: working on lint * feat: Fix mypy issues
1 parent bc86864 commit ea93cd0

File tree

8 files changed

+1209
-669
lines changed

8 files changed

+1209
-669
lines changed

.github/workflows/format-lint.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: format-lint
2+
3+
on:
4+
push:
5+
branches:
6+
- '*'
7+
tags:
8+
- '*.*.*'
9+
pull_request:
10+
branches:
11+
- '*'
12+
13+
workflow_dispatch:
14+
15+
jobs:
16+
17+
format-lint:
18+
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- uses: actions/checkout@v2
23+
24+
- name: install requirements
25+
run: |
26+
sudo pip3 install ruff mypy
27+
28+
- name: run format and lint
29+
run: |
30+
ruff format --check
31+
ruff check
32+
mypy --check .
33+

0 commit comments

Comments
 (0)