-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (33 loc) · 1.04 KB
/
lint.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
name: Lint
on: [push, pull_request]
jobs:
pylint:
runs-on: ubuntu-latest
name: PyLint
steps:
- name: Check out source repository
uses: actions/checkout@v3
- name: Setup Python environment
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: Install dependencies
run: sudo apt-get install libcairo2-dev gcc python3-dev libgirepository1.0-dev libostree-dev fuse-overlayfs libcap-dev autoconf && python -m pip install -r requirements.txt && python -m pip install pylint
- name: pylint
run: pylint -d C0413,C0103,R0912,R0915,W0603 src/maps
flake8-lint:
runs-on: ubuntu-latest
name: Flake8
steps:
- name: Check out source repository
uses: actions/checkout@v3
- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: "3.8"
- name: flake8 Lint
uses: py-actions/flake8@v2
with:
path: src/maps
ignore: "E402"
max-line-length: "100"