File: linter.yml

package info (click to toggle)
kombu 5.6.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,968 kB
  • sloc: python: 28,815; makefile: 318
file content (40 lines) | stat: -rw-r--r-- 1,123 bytes parent folder | download
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
name: Linter

on: [pull_request, workflow_dispatch]

jobs:
  pre-commit:
    runs-on: blacksmith-4vcpu-ubuntu-2204
    steps:

      - name: Checkout branch
        uses: actions/checkout@v6

      - name: Run pre-commit
        uses: pre-commit/action@v3.0.1

  lint:
    runs-on: blacksmith-4vcpu-ubuntu-2204
    strategy:
      matrix:
        python-version: ["3.13"]
    steps:
      - name: Install system packages
        run: sudo apt-get update && sudo apt-get install libcurl4-openssl-dev libssl-dev
      - name: Check out code from GitHub
        uses: actions/checkout@v6
      - name: Set up Python ${{ matrix.python-version }}
        id: python
        uses: useblacksmith/setup-python@v6
        with:
            python-version: ${{ matrix.python-version }}
      - name: Install dependencies
        run: pip install --upgrade pip wheel tox tox-docker
      - name: Run flake8
        run: tox -v -e flake8 -- -v
      - name: Run pydocstyle
        run: tox -v -e pydocstyle -- -v
      - name: Run apicheck
        run: tox -v -e apicheck -- -v
      - name: Run mypy
        run: tox -v -e mypy -- -v