-
Notifications
You must be signed in to change notification settings - Fork 51
42 lines (41 loc) · 1.05 KB
/
linting.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
39
40
41
42
---
name: Lint code in repository
"on":
push:
branches:
- "main"
pull_request:
jobs:
yamllint:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install yamllint
- name: Linting - YAML
run: find . -name '*.yml' | xargs yamllint -s
black:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install black
- name: Linting - black
run: black -v --check .
pylama:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pylama
- name: Linting - pylama
run: pylama -i E501 .