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 Mar 13, 2024
1 parent a58d2ec commit 93b1c61
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions qtribu/gui/geotribu_toolbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

from PyQt5.QtCore import QModelIndex, Qt, QUrl
from PyQt5.QtGui import QDesktopServices, QStandardItem, QStandardItemModel
from PyQt5.QtWidgets import QAction, QListView, QMenu, QMessageBox

from PyQt5.QtWidgets import QListView
from qgis.gui import QgsDockWidget
from qgis.PyQt import uic
from qgis.PyQt.QtWidgets import QWidget
Expand All @@ -14,7 +13,6 @@


class GeotribuToolbox(QgsDockWidget):

def __init__(self, parent: QWidget = None):
"""
QgsDockWidget for geotribu toolbox
Expand All @@ -33,15 +31,19 @@ def __init__(self, parent: QWidget = None):
self.articles_tree_view.setModel(self.articles_model)
self.articles_tree_view.doubleClicked.connect(self.on_article_double_clicked)
self.articles_tree_view.setContextMenuPolicy(Qt.CustomContextMenu)
self.articles_tree_view.customContextMenuRequested.connect(self.on_open_article_context_menu)
self.articles_tree_view.customContextMenuRequested.connect(
self.on_open_article_context_menu
)

# RDP lists and treeviews
self.rdp_list_view = QListView()
self.rdp_model = QStandardItemModel(self.rdp_list_view)
self.rdp_tree_view.setModel(self.rdp_model)
self.rdp_tree_view.doubleClicked.connect(self.on_article_double_clicked)
self.rdp_tree_view.setContextMenuPolicy(Qt.CustomContextMenu)
self.rdp_tree_view.customContextMenuRequested.connect(self.on_open_article_context_menu)
self.rdp_tree_view.customContextMenuRequested.connect(
self.on_open_article_context_menu
)

# buttons actions
self.form_rdp_news = None
Expand Down
2 changes: 1 addition & 1 deletion qtribu/logic/rss_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import logging
import xml.etree.ElementTree as ET
from email.utils import parsedate
from typing import Optional, List
from typing import List, Optional

# QGIS
from qgis.core import Qgis, QgsSettings
Expand Down

0 comments on commit 93b1c61

Please sign in to comment.