-
Notifications
You must be signed in to change notification settings - Fork 22
55 lines (47 loc) · 1.29 KB
/
python_quality.yml
File metadata and controls
55 lines (47 loc) · 1.29 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: python-quality
on:
push:
branches: ['**']
paths:
- "pyproject.toml"
- "nifi/requirements.txt"
- "nifi/requirements-dev.txt"
- "nifi/**/*.py"
- "scripts/**/*.py"
- "typings/**/*.pyi"
- ".github/workflows/python_quality.yml"
pull_request:
paths:
- "pyproject.toml"
- "nifi/requirements.txt"
- "nifi/requirements-dev.txt"
- "nifi/**/*.py"
- "scripts/**/*.py"
- "typings/**/*.pyi"
- ".github/workflows/python_quality.yml"
workflow_dispatch:
permissions:
contents: read
jobs:
quality:
name: Ruff + MyPy
runs-on: ubuntu-22.04
timeout-minutes: 20
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install uv
run: |
python -m pip install --upgrade pip uv
- name: Install requirements with uv
run: |
uv pip install --system -r nifi/requirements.txt -r nifi/requirements-dev.txt
- name: Ruff (critical rules)
run: |
python -m ruff check scripts nifi/user_python_extensions --select F,E9
- name: MyPy
run: |
python -m mypy --config-file pyproject.toml nifi/user_python_extensions scripts