-
Notifications
You must be signed in to change notification settings - Fork 113
43 lines (42 loc) · 1.19 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
name: Code Style
on: [ push, pull_request ]
jobs:
isort:
name: isort
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install Dependencies
run: pip3 install isort
- name: Run isort
run: 'isort --check'
pycodestyle1:
name: pycodestyle (everything but tests)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install Dependencies
run: pip3 install pycodestyle
- name: Run pycodestyle
run: 'pycodestyle --ignore=E402,E501 --exclude=voctocore/tests,doc,example-scripts .'
pycodestyle2:
name: pycodestyle (tests only)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install Dependencies
run: pip3 install pycodestyle
- name: Run pycodestyle
run: 'pycodestyle --ignore=E501 voctocore/tests'