-
Notifications
You must be signed in to change notification settings - Fork 369
40 lines (38 loc) · 1.08 KB
/
pylint.yaml
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
39
40
name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ufmt==2.0.1 click==8.1.3 black==22.12.0 flake8==5.0.4
- name: Analyzing the code with flake8
run: |
echo "::add-matcher::tests/lint/flake8_problem_matcher.json"
flake8 .
- name: Analyzing the code with ufmt
run: |
ufmt diff python
ufmt diff tests
ufmt diff docs
- name: Check Meta copyright header
run: |
python tests/lint/check_meta_header.py --path=./tests --fixit=False
python tests/lint/check_meta_header.py --path=./python --fixit=False
python tests/lint/check_meta_header.py --path=./fx2ait --fixit=False