-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (37 loc) · 989 Bytes
/
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
name: Linting
on: [push, pull_request]
jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: psf/black@stable
djlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- name: Install djlint
run: pip install djlint
- name: Run djlint
run: djlint --check --lint opendrift_leeway_webgui
isort:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: jamescurtin/isort-action@master
with:
configuration: --check-only
pylint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install package locally
run: pip install -e .[dev]
- name: Run pylint
run: pre-commit run pylint --all-files