mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2026-03-21 20:18:38 -06:00
👷 Switched to astral.sh stack for linting and formatting
This commit is contained in:
Vendored
+18
-16
@@ -1,27 +1,29 @@
|
|||||||
---
|
---
|
||||||
name: Pylint Quality control
|
name: Code Quality
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
python_quality_testing:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: ["3.12","3.13"]
|
python-version: ["3.12", "3.13"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Install uv
|
||||||
uses: actions/setup-python@v5
|
uses: astral-sh/setup-uv@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
enable-cache: true
|
||||||
- name: Install dependencies
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
run: |
|
run: uv python install ${{ matrix.python-version }}
|
||||||
python -m pip install --upgrade pip
|
- name: Install dependencies
|
||||||
pip install pylint
|
run: uv sync --dev
|
||||||
pip install -r requirements.txt
|
- name: Lint with ruff
|
||||||
- name: Analysing the code with pylint
|
run: uv run ruff check .
|
||||||
run: |
|
- name: Format check with ruff
|
||||||
pylint --module-naming-style=any modules/* netbox_zabbix_sync.py
|
run: uv run ruff format --check .
|
||||||
|
- name: Type check with ty
|
||||||
|
run: uv run ty check
|
||||||
|
|||||||
Reference in New Issue
Block a user