Skip to content

Commit ce3f282

Browse files
jimmodpgeorge
authored andcommitted
github/workflows: Split ruff into its own action.
This matches the main repo, and conceputually ruff is not strictly doing "code formatting". Signed-off-by: Jim Mussared <[email protected]>
1 parent efa0402 commit ce3f282

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/code_formatting.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v3
10-
- run: pip install --user ruff
11-
- run: ruff --format=github .
1210
- uses: actions/setup-python@v4
1311
- name: Install packages
1412
run: source tools/ci.sh && ci_code_formatting_setup

.github/workflows/ruff.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
2+
name: Python code lint with ruff
3+
on: [push, pull_request]
4+
jobs:
5+
ruff:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v3
9+
- run: pip install --user ruff
10+
- run: ruff --format=github .

0 commit comments

Comments
 (0)