Debian Codegraph @

.github/workflows/lint.yml

raw symbols SCIP
1 name: lint
2
3 on: [push, pull_request]
4
5 jobs:
6 build:
7 runs-on: ubuntu-latest
8 name: flake8-black-mypy
9 steps:
10 - uses: actions/checkout@v1
11 - name: Set up Python 3.8
12 uses: actions/setup-python@v1
13 with:
14 python-version: 3.8
15 - name: Lint with flake8
16 run: |
17 pip install flake8
18 # stop the build if there are Python syntax errors or undefined names
19 flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
20 # exit-zero treats all errors as warnings.
21 flake8 . --count --exit-zero --max-complexity=10 --statistics
22 - name: Check formatting with black
23 run: |
24 pip install black
25 black --check .
26 - name: Check types with mypy
27 run: |
28 pip install mypy
29 mypy vega_datasets