Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STYLE: Fix line length and prefer single quote (from precommit script) #21

Merged
merged 2 commits into from
May 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Python
[tool.black]
line-length = 80
skip-string-normalization = 1
target_version = ["py311"]

[tool.flake8]
Expand Down
7 changes: 6 additions & 1 deletion src/sovImageTablePanelWidget.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
from PySide6.QtCore import QSize
from PySide6.QtGui import QIcon, QPixmap
from PySide6.QtWidgets import QHeaderView, QTableWidget, QTableWidgetItem, QWidget
from PySide6.QtWidgets import (
QHeaderView,
QTableWidget,
QTableWidgetItem,
QWidget,
)

from sovImageTablePanelUtils import get_qthumbnail_from_array
from sovUtils import get_file_reccords_from_settings, time_and_log
Expand Down
7 changes: 6 additions & 1 deletion src/sovInfoTablePanelWidget.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
from PySide6.QtWidgets import QHeaderView, QTableWidget, QTableWidgetItem, QWidget
from PySide6.QtWidgets import (
QHeaderView,
QTableWidget,
QTableWidgetItem,
QWidget,
)

from sovUtils import time_and_log
from ui_sovInfoTablePanelWidget import Ui_InfoTablePanelWidget
Expand Down
5 changes: 4 additions & 1 deletion src/sovView2DPanelWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@

from sovUtils import time_and_log
from sovView2DRenderWindowInteractor import View2DRenderWindowInteractor
from sovView2DUtils import render_object_in_overlay_array, render_scene_in_overlay_array
from sovView2DUtils import (
render_object_in_overlay_array,
render_scene_in_overlay_array,
)
from ui_sovView2DPanelWidget import Ui_View2DPanelWidget


Expand Down
5 changes: 4 additions & 1 deletion src/sovView3DRenderWindowInteractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
)

from sovUtils import get_tag_value_index_in_list_of_dict, time_and_log
from sovView3DUtils import convert_scene_to_surfaces, get_closest_point_in_world_space
from sovView3DUtils import (
convert_scene_to_surfaces,
get_closest_point_in_world_space,
)


class View3DRenderWindowInteractor(QVTKRenderWindowInteractor):
Expand Down