Skip to content

Commit 8f39219

Browse files
authored
Merge pull request #292 from xylar/ruff-clean-up
Some clean up to ruff
2 parents 91541b8 + ff775a3 commit 8f39219

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ repos:
2020
- repo: https://github.com/astral-sh/ruff-pre-commit
2121
rev: v0.9.9
2222
hooks:
23-
# Sort the imports
24-
- id: ruff
25-
name: ruff-sort-imports
26-
args: [--select, I, --fix]
2723
# Run the linter.
2824
- id: ruff
2925
args: [--fix]

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,10 @@ line-length = 79
7474
# F - Enable Pyflakes
7575
# B - Enable flake8-bugbear
7676
# W - Enable pycodestyle
77+
# I - imports
7778
# C901 - complex-structure
7879
# D - Enable flake8-docstrings
79-
select = ["E501", "E4", "E7", "E9", "F", "B", "W", "C901"]
80+
select = ["E501", "E4", "E7", "E9", "F", "B", "W", "I", "C901"]
8081

8182
[tool.ruff.format]
8283
quote-style = "single"

0 commit comments

Comments
 (0)