Skip to content

Commit 723ce80

Browse files
committed
Use ruff to sort imports
Drops no longer needed isort which does the same ordering. Drops ignoring E501 Line too long.
1 parent a9ae32f commit 723ce80

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

.pre-commit-config.yaml

+1-12
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,6 @@ repos:
1717
- id: end-of-file-fixer
1818
- id: trailing-whitespace
1919

20-
# Sort imports
21-
- repo: https://github.com/pycqa/isort
22-
rev: 6.0.1
23-
hooks:
24-
- id: isort
25-
name: isort
26-
args:
27-
- --line-length=79
28-
- --profile=black
29-
3020
# Remove unused imports, variables, statements
3121
- repo: https://github.com/PyCQA/autoflake
3222
rev: v2.3.1
@@ -47,8 +37,7 @@ repos:
4737
hooks:
4838
- id: ruff
4939
args:
50-
# ignore: E501 Line too long
51-
- --ignore=E501
40+
- --fix
5241
- id: ruff-format
5342

5443
# Linter and formatter

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,6 @@ retasc = "retasc.__main__:main"
4141
[build-system]
4242
requires = ["poetry-core"]
4343
build-backend = "poetry.core.masonry.api"
44+
45+
[tool.ruff.lint]
46+
extend-select = ["I"]

0 commit comments

Comments
 (0)