From cf4c4c5620a86b76c86ab7a54977275fc40c6cda Mon Sep 17 00:00:00 2001 From: Wouter de Bruijn Date: Mon, 2 Feb 2026 18:48:06 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Switched=20to=20astral.sh=20stac?= =?UTF-8?q?k=20for=20linting=20and=20formatting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/quality.yml | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/.github/workflows/quality.yml b/.github/workflows/quality.yml index 81cad97..ee759b4 100644 --- a/.github/workflows/quality.yml +++ b/.github/workflows/quality.yml @@ -1,27 +1,29 @@ --- -name: Pylint Quality control +name: Code Quality on: pull_request: workflow_call: jobs: - python_quality_testing: + lint: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.12","3.13"] + python-version: ["3.12", "3.13"] steps: - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pylint - pip install -r requirements.txt - - name: Analysing the code with pylint - run: | - pylint --module-naming-style=any modules/* netbox_zabbix_sync.py + - uses: actions/checkout@v4 + - name: Install uv + uses: astral-sh/setup-uv@v5 + with: + enable-cache: true + - name: Set up Python ${{ matrix.python-version }} + run: uv python install ${{ matrix.python-version }} + - name: Install dependencies + run: uv sync --dev + - name: Lint with ruff + run: uv run ruff check . + - name: Format check with ruff + run: uv run ruff format --check . + - name: Type check with ty + run: uv run ty check