-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (32 loc) · 978 Bytes
/
lint.yml
File metadata and controls
41 lines (32 loc) · 978 Bytes
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
39
40
41
name: Lint
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install dependencies
run: |
uv pip install --system -e .[dev]
- name: Run Black (formatting check)
run: |
black --check instrmcp/ tests/
- name: Run Flake8 (linting)
run: |
flake8 instrmcp/ tests/ --count --select=E9,F63,F7,F82 --show-source --statistics --extend-ignore=F824
flake8 instrmcp/ tests/ --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --extend-ignore=F824
- name: Run MyPy (type checking)
run: |
mypy instrmcp/ --ignore-missing-imports
continue-on-error: true