-
Notifications
You must be signed in to change notification settings - Fork 2
50 lines (47 loc) · 1.34 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
43
44
45
46
47
48
49
50
name: Linting
on:
push:
branches:
- main
tags:
- "*"
pull_request:
workflow_dispatch:
jobs:
prettier:
name: Prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: bahmutov/npm-install@v1
- run: npm run lint
isort:
name: Check import sorting
runs-on: ubuntu-latest
steps:
- run: |
sudo apt-get update
sudo apt-get install -y libxml2-dev libxmlsec1-dev libxmlsec1-openssl
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.9"
- run: |
pip install isort
- run: |
isort --check --diff djadyen
black:
name: Check code formatting with black
runs-on: ubuntu-latest
steps:
- run: |
sudo apt-get update
sudo apt-get install -y libxml2-dev libxmlsec1-dev libxmlsec1-openssl
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.9"
- run: |
pip install black
- run: |
black --check --diff djadyen