Skip to content

Commit c5a3246

Browse files
committed
Add linting check CI/CD job
1 parent aeecdf1 commit c5a3246

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.github/workflows/syntax.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Linting
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
checkSyntax:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Python Setup
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: "3"
19+
architecture: x64
20+
- name: Checkout Source
21+
uses: actions/checkout@v4
22+
- name: Install Dependencies
23+
run: pip install -r requirements.txt -r requirements-dev.txt
24+
- name: Ruff Check
25+
run: |
26+
ruff --version
27+
ruff check
28+
- name: Pyright Check
29+
run: |
30+
pyright --version
31+
pyright
32+
- name: Isort Check
33+
run: |
34+
isort --version
35+
isort --check .

requirements-dev.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
ruff
1+
isort
22
pyright
3+
ruff

0 commit comments

Comments
 (0)