Skip to content

Commit

Permalink
Fix linting issues w/ ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
zhe-slac committed Jan 28, 2025
1 parent c30c08b commit 3fea0fa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions src/badger/gui/acr/components/env_cbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@
QStyledItemDelegate,
QLabel,
QListWidget,
QFrame,
)
from PyQt5.QtCore import QRegExp, QPropertyAnimation, QRect
from PyQt5.QtCore import QRegExp, QPropertyAnimation

from badger.gui.default.components.collapsible_box import CollapsibleBox
from badger.gui.default.components.var_table import VariableTable
Expand Down
4 changes: 2 additions & 2 deletions src/badger/gui/acr/components/history_navigator.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ def _selectItemByRun(self, run):
month_item = year_item.child(j)
for k in range(month_item.childCount()):
day_item = month_item.child(k)
for l in range(day_item.childCount()):
file_item = day_item.child(l)
for _l in range(day_item.childCount()):
file_item = day_item.child(_l)
if get_base_run_filename(file_item.text(0)) == run:
self.tree_widget.setCurrentItem(file_item)
return
Expand Down
3 changes: 0 additions & 3 deletions src/badger/gui/acr/windows/settings_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@
QDialog,
QDialogButtonBox,
QApplication,
# QStyledItemDelegate,
QCheckBox,
)
from qdarkstyle import load_stylesheet, DarkPalette, LightPalette
from badger.settings import init_settings
from badger.utils import strtobool


class BadgerSettingsDialog(QDialog):
Expand Down

0 comments on commit 3fea0fa

Please sign in to comment.