Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 28, 2024
1 parent 89ba8ed commit e892e6a
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/garnet/home/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
from contextlib import suppress
from typing import Any, Dict, Optional

from garnet.helpers.ui_elements.base_lineedit import BaseLineEdit
from garnet.helpers.ui_elements.base_statusbar import BaseStatusBar
from qtpy.QtGui import QDoubleValidator
from qtpy.QtWidgets import QFormLayout, QLabel, QPushButton, QWidget

from garnet.helpers.ui_elements.base_lineedit import BaseLineEdit
from garnet.helpers.ui_elements.base_statusbar import BaseStatusBar


class HomeView(QWidget):
"""Home widget
Expand Down
3 changes: 2 additions & 1 deletion tests/tabs/home/views/test_home.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
"""Test the home view"""

import pytest
from garnet.home.view import HomeView
from qtpy import QtCore

from garnet.home.view import HomeView


def test_plan_name(qtbot: pytest.fixture):
"""Test that the plan_name LineEdit is required"""
Expand Down
1 change: 1 addition & 0 deletions tests/tabs/home/views/test_welcome.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Test the welcome tab"""

import pytest

from garnet import Garnet, __version__


Expand Down
2 changes: 1 addition & 1 deletion tests/utility/test_garnet_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import pytest


@pytest.mark.datarepo()
@pytest.mark.datarepo
def test_data_repo(has_datarepo: bool, datarepo_dir: str):
"""Test for garnet-data"""
if not has_datarepo:
Expand Down
1 change: 1 addition & 0 deletions tests/utility/test_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from unittest.mock import patch

import pytest

from garnet.garnet import gui


Expand Down
3 changes: 2 additions & 1 deletion tests/utility/test_logger.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
"""Tests for the Logger class in garnet/logger.py."""

from garnet.helpers.logger import Logger
from mantid.kernel import Logger as mantid_logger # noqa: N813

from garnet.helpers.logger import Logger


def test_get_logger():
"""Test getting the logger."""
Expand Down

0 comments on commit e892e6a

Please sign in to comment.