-
-
Notifications
You must be signed in to change notification settings - Fork 20
47 lines (40 loc) · 1.16 KB
/
style.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
name: Style Checks
on:
push:
branches:
- master
- devel
pull_request:
branches:
- master
- devel
jobs:
style_checks:
runs-on: ubuntu-latest
steps:
# use isort github action see
#https://pycqa.github.io/isort/docs/configuration/github_action.html
- uses: actions/checkout@v4
- uses: actions/[email protected]
with:
python-version: 3.8
- name: Check imports with pyflakes
run: |
pip install pyflakes
pyflakes buildtest tests scripts
- name: Running isort check
uses: jamescurtin/isort-action@master
with:
#requirementsFiles: "requirements.txt docs/requirements.txt"
sortPaths: "buildtest tests docs"
- name: Running black check
# use black github action see
#https://black.readthedocs.io/en/stable/integrations/github_actions.html
uses: psf/black@stable
with:
options: "--check --verbose"
src: "buildtest tests scripts"
- name: Run yamllint
run: |
pip install yamllint
yamllint -c .yamllint.yml .github .gitlab buildtest tests docs