File: lint.yml

package info (click to toggle)
python-altair 5.0.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,952 kB
  • sloc: python: 25,649; sh: 14; makefile: 6
file content (29 lines) | stat: -rw-r--r-- 715 bytes parent folder | download | duplicates (2)
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
name: lint

on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest
    name: black-ruff-mypy
    steps:
    - uses: actions/checkout@v3
    - name: Set up Python 3.10
      uses: actions/setup-python@v4
      with:
        python-version: "3.10"
    # Installing all dependencies and not just the linters as mypy needs them for type checking
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install .[dev]
    - name: Check formatting with black
      run: |
        black --diff --color .
        black --check .
    - name: Lint with ruff
      run: |        
        ruff check .
    - name: Lint with mypy
      run: |
        mypy altair tests