Skip to content

Commit 42b1739

Browse files
Moved linting to separate workflow
1 parent 961be0c commit 42b1739

2 files changed

Lines changed: 23 additions & 16 deletions

File tree

.github/workflows/linting.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Linting
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- 'develop'
7+
8+
jobs:
9+
Whitespaces:
10+
name: Check trailing whitespaces
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.13'
19+
- name: Install Ruff
20+
run: pip install ruff
21+
- name: Trailing whitespaces
22+
run: ruff check --select=W291

.github/workflows/regression.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,19 +53,4 @@ jobs:
5353
uses: docker://ghcr.io/su2code/su2_dataminer_test:v2
5454
with:
5555
entrypoint: /bin/rm
56-
args: -rf src/
57-
58-
Neatness:
59-
name: Check formatting
60-
runs-on: ubuntu-latest
61-
steps:
62-
- name: Checkout code
63-
uses: actions/checkout@v4
64-
- name: Set up Python
65-
uses: actions/setup-python@v5
66-
with:
67-
python-version: '3.13'
68-
- name: Install Ruff
69-
run: pip install ruff
70-
- name: Run Ruff
71-
run: ruff check --select=W291
56+
args: -rf src/

0 commit comments

Comments
 (0)