Skip to content

Commit 712a78b

Browse files
committed
Add isort rule to ruff.toml and remove isort step
1 parent c9be49b commit 712a78b

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,12 @@ jobs:
4343
name: Run count files
4444
# Run ruff on filtered files if there are any.
4545
- uses: chartboost/ruff-action@v1
46-
name: Run 'ruff format --check'
46+
name: Run 'ruff format --check --config ./ruff.toml'
4747
if: ${{ steps.counter.outputs.count > 0 }}
4848
with:
4949
version: 0.3.5
5050
args: 'format --check --config ./ruff.toml'
5151
src: ${{ steps.filter.outputs.python_files }}
52-
- uses: chartboost/ruff-action@v1
53-
name: Run 'ruff --select I'
54-
if: ${{ steps.counter.outputs.count > 0 }}
55-
with:
56-
version: 0.3.5
57-
args: '--select I --config ./ruff.toml'
58-
src: ${{ steps.filter.outputs.python_files }}
5952
- uses: chartboost/ruff-action@v1
6053
name: Run 'ruff'
6154
if: ${{ steps.counter.outputs.count > 0 }}

ruff.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[lint]
2-
# Enable default rules plus S101 (check for asserts).
3-
select = ["E4", "E7", "E9", "F", "S101"]
2+
# Enable default rules plus I (isort) and S101 (check for asserts).
3+
select = ["I", "E4", "E7", "E9", "F", "S101"]
44

55
[lint.per-file-ignores]
66
# Ignore import violations in all init files.

0 commit comments

Comments
 (0)