-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 1004 Bytes
/
linter.yml
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
# This workflow will install Python dependencies and run linter
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
# TODO: update linters
name: linter
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
pip install --upgrade pip
pip install isort black flake8 mypy
- name: Code format check with isort
run: isort --check-only --profile black .
- name: Code format check with black
run: black --check .
- name: Code format check with flake8
run: flake8 --ignore E501,E203,W503 .
- name: Type check with mypy
run: mypy --ignore-missing-imports .