Skip to content
Snippets Groups Projects
Commit 5c0dbd0d authored by Simon Bjurek's avatar Simon Bjurek
Browse files

Replace isort hook with isort ruff rule

parent 540c84d9
Branches
No related tags found
1 merge request!513Various ruff rules and ILP split_on_ports improvements
...@@ -23,12 +23,6 @@ repos: ...@@ -23,12 +23,6 @@ repos:
hooks: hooks:
- id: black - id: black
- repo: https://github.com/pycqa/isort
rev: 6.0.0
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/Carreau/velin - repo: https://github.com/Carreau/velin
rev: 0.0.11 rev: 0.0.11
hooks: hooks:
...@@ -39,6 +33,7 @@ repos: ...@@ -39,6 +33,7 @@ repos:
rev: "v0.9.7" rev: "v0.9.7"
hooks: hooks:
- id: ruff - id: ruff
args: ["--fix", "--select", "I"]
- repo: https://github.com/adamchainz/blacken-docs - repo: https://github.com/adamchainz/blacken-docs
rev: 1.19.1 rev: 1.19.1
......
...@@ -3,8 +3,8 @@ import sys # ONLY FOR DEBUG ...@@ -3,8 +3,8 @@ import sys # ONLY FOR DEBUG
from qtpy.QtCore import Qt from qtpy.QtCore import Qt
from qtpy.QtGui import QCursor, QPixmap from qtpy.QtGui import QCursor, QPixmap
from qtpy.QtWidgets import QApplication # ONLY FOR DEBUG
from qtpy.QtWidgets import ( from qtpy.QtWidgets import (
QApplication, # ONLY FOR DEBUG
QDialog, QDialog,
QFrame, QFrame,
QHBoxLayout, QHBoxLayout,
......
...@@ -101,7 +101,7 @@ precision = 2 ...@@ -101,7 +101,7 @@ precision = 2
exclude = ["examples", "test", "docs_sphinx"] exclude = ["examples", "test", "docs_sphinx"]
[tool.ruff.lint] [tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "SIM", "B", "NPY", "C4", "UP", "RUF", "A"] select = ["E4", "E7", "E9", "F", "SIM", "B", "NPY", "C4", "UP", "RUF", "A", "I"]
ignore = ["F403", "B008", "B021", "B006", "UP038", "RUF023", "A005"] ignore = ["F403", "B008", "B021", "B006", "UP038", "RUF023", "A005"]
[tool.typos] [tool.typos]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment