File: lint.yaml

package info (click to toggle)
python-datapoint 0.13.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 584 kB
  • sloc: python: 3,062; makefile: 18
file content (45 lines) | stat: -rw-r--r-- 1,126 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
41
42
43
44
45
name: Lint
on:
  pull_request:
    branches:
      - "master"
jobs:
  black:
    runs-on: ubuntu-24.04
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Set up python
        uses: actions/setup-python@v4
        with:
          python-version: "3.12"
      - name: Install and run linter
        run: |
          pip install black==22.10.0
          black --check --verbose --diff --color -S .
  isort:
    runs-on: ubuntu-24.04
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Set up python
        uses: actions/setup-python@v4
        with:
          python-version: "3.12"
      - name: Install and run linter
        run: |
          pip install isort==5.13.2
          isort . --check-only --diff
  flake8:
    runs-on: ubuntu-24.04
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Set up python
        uses: actions/setup-python@v4
        with:
          python-version: "3.12"
      - name: Install and run linter
        run: |
          pip install flake8==7.1.0 flake8-bugbear flake8-pytest-style
          flake8