-
-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (31 loc) · 859 Bytes
/
qa.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
38
name: QA
on: [push, pull_request]
env:
# black default
MAX_LINE_LENGTH: 88
jobs:
check-qa:
runs-on: ubuntu-22.04
steps:
- name: Retrieve source code
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v1
with:
python-version: 3.8
architecture: x64
- name: Check black formatting
run: |
pip install black==22.3.0
black --version
black --check .
- name: Check flake8 linting
run: |
pip install flake8==3.9.2
flake8 --version
flake8 . --count --max-line-length=$MAX_LINE_LENGTH --statistics
- name: Check import order with isort
run: |
pip install isort==5.9.3
isort --version
isort --profile black --check .