-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (29 loc) · 1.02 KB
/
lint.yml
File metadata and controls
38 lines (29 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Code Quality
on:
push:
branches: [ main, develop, iss_CICL ]
pull_request:
branches: [ main, develop ]
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install "black==25.9.0" isort flake8 mypy ruff
- name: Run black (code formatting)
run: black --check --diff src/nodelens/ tests/ scripts/
- name: Run isort (import sorting)
run: isort --check-only --diff --profile black src/nodelens/ tests/ scripts/
- name: Run flake8 (linting)
run: flake8 src/nodelens/ tests/ scripts/ --max-line-length=100 --ignore=E203,W503 || echo "Flake8 has warnings"
- name: Run mypy (type checking)
run: mypy src/nodelens/ --ignore-missing-imports --no-strict-optional || echo "Type checking has warnings"