diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3fc8f67f786627e8619e0fd5e42f32f9241fd31c..5a8f01580d8ee519d646a9f49aca7530c2f5f830 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,12 +23,6 @@ repos: hooks: - id: black - - repo: https://github.com/pycqa/isort - rev: 6.0.0 - hooks: - - id: isort - name: isort (python) - - repo: https://github.com/Carreau/velin rev: 0.0.11 hooks: @@ -39,6 +33,7 @@ repos: rev: "v0.9.7" hooks: - id: ruff + args: ["--fix", "--select", "I"] - repo: https://github.com/adamchainz/blacken-docs rev: 1.19.1 diff --git a/b_asic/gui_utils/about_window.py b/b_asic/gui_utils/about_window.py index 91a7522d3fdf4345564b19b3c5b2f987611dcd43..a2bc98f7cb913e1d1d82cb53f8c655ef8bda9af7 100644 --- a/b_asic/gui_utils/about_window.py +++ b/b_asic/gui_utils/about_window.py @@ -3,8 +3,8 @@ import sys # ONLY FOR DEBUG from qtpy.QtCore import Qt from qtpy.QtGui import QCursor, QPixmap -from qtpy.QtWidgets import QApplication # ONLY FOR DEBUG from qtpy.QtWidgets import ( + QApplication, # ONLY FOR DEBUG QDialog, QFrame, QHBoxLayout, diff --git a/pyproject.toml b/pyproject.toml index f2d09feb20af2b13611ed57a21906d5c9b23792c..df271a8b81efdf0a0bd46f7ffaac43fd3944b522 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -101,7 +101,7 @@ precision = 2 exclude = ["examples", "test", "docs_sphinx"] [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"] [tool.typos]