Debian Codegraph @

.github/workflows/lint.yml

raw
1 name: Lint
2
3 on: [push, pull_request]
4
5 jobs:
6 flake8:
7 name: flake8
8 runs-on: ubuntu-latest
9 steps:
10 - name: Checkout
11 uses: actions/checkout@v3
12 - name: Set up Python
13 uses: actions/setup-python@v4
14 with:
15 python-version: 3.9
16 - name: Install flake8
17 run: pip install --upgrade flake8
18 - name: Run flake8
19 uses: liskin/gh-problem-matcher-wrap@v1
20 with:
21 linters: flake8
22 run: flake8
23
24 isort:
25 runs-on: ubuntu-latest
26 steps:
27 - name: Checkout
28 uses: actions/checkout@v3
29 - name: Set up Python
30 uses: actions/setup-python@v4
31 with:
32 python-version: 3.9
33 - run: python -m pip install isort
34 - name: isort
35 uses: liskin/gh-problem-matcher-wrap@v1
36 with:
37 linters: isort
38 run: isort --check --diff sekizai