diff --git a/.github/workflows/ruff.yaml b/.github/workflows/ruff.yaml index b974eb5..7ce3b67 100644 --- a/.github/workflows/ruff.yaml +++ b/.github/workflows/ruff.yaml @@ -14,7 +14,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install ruff + pip install ruff==0.3.3 # Update output format to enable automatic inline annotations. - name: Run Ruff run: ruff format --diff . diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 065c2d1..9319c02 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,7 +1,7 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.1.11 + rev: v0.3.3 hooks: # Run the formatter. - id: ruff-format diff --git a/src/InteractorAroundActivePlane.py b/src/InteractorAroundActivePlane.py index 6657f2a..a95268f 100644 --- a/src/InteractorAroundActivePlane.py +++ b/src/InteractorAroundActivePlane.py @@ -2,6 +2,7 @@ Module contains custom interactor for vtk inspired by: https://fossies.org/linux/VTK/Examples/GUI/Python/CustomInteraction.py """ + from typing import Tuple import numpy as np diff --git a/src/cone_slicing.py b/src/cone_slicing.py index c41642f..deab3a3 100644 --- a/src/cone_slicing.py +++ b/src/cone_slicing.py @@ -1,6 +1,7 @@ """ Module contains logic behind the cone slicing """ + from typing import Tuple import numpy as np diff --git a/src/figure_editor.py b/src/figure_editor.py index 4116bcb..f1eec44 100644 --- a/src/figure_editor.py +++ b/src/figure_editor.py @@ -1,6 +1,7 @@ """ Provides a class creating a new window to edit parameters of custom figures """ + import sys from typing import List, Callable, Dict, Tuple, Optional, Union from functools import partial