~roshless/nnrss-qt

766ac9ddedc83a5997f1e92e0470002865c1bb31 — Roshless 4 months ago 5574bd1 master
formatting using black with iosort

also config change for it
A nnrss_qt/__init__.py => nnrss_qt/__init__.py +0 -0
M nnrss_qt/add_dialog.py => nnrss_qt/add_dialog.py +1 -1
@@ 1,5 1,5 @@
from PyQt5.QtWidgets import QDialog
from PyQt5 import QtCore, QtWidgets
from PyQt5.QtWidgets import QDialog

from nnrss_qt.api_handler import ApiHandler


M nnrss_qt/feed_widget.py => nnrss_qt/feed_widget.py +1 -1
@@ 1,6 1,6 @@
from PyQt5.QtCore import Qt
from PyQt5.QtGui import QIcon, QPixmap
from PyQt5.QtWidgets import QGridLayout, QLabel, QWidget, QSizePolicy
from PyQt5.QtWidgets import QGridLayout, QLabel, QSizePolicy, QWidget


class QWidgetFeeds(QWidget):

M nnrss_qt/main_window.py => nnrss_qt/main_window.py +4 -3
@@ 1,7 1,7 @@
from subprocess import run
from webbrowser import open

from PyQt5 import QtWidgets
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtCore import QEvent, Qt
from PyQt5.QtGui import QColor
from PyQt5.QtWidgets import (


@@ 11,7 11,6 @@ from PyQt5.QtWidgets import (
    QSizePolicy,
    QWidget,
)
from PyQt5 import QtCore, QtGui

from nnrss_qt.add_dialog import DialogAddFeed
from nnrss_qt.api_handler import ApiHandler


@@ 290,7 289,9 @@ class MainWindow(QMainWindow):
        if updated_entries_count > 0:
            title = "Feeds updated"
            body = "{} new entries".format(str(updated_entries_count))
            run(["notify-send", title, body, "--icon=/usr/share/nnrss_qt/feed_icon.svg"])
            run(
                ["notify-send", title, body, "--icon=/usr/share/nnrss_qt/feed_icon.svg"]
            )

    def closeEvent(self, event):
        self.api_handler.save_cached()

M nnrss_qt/settings_window.py => nnrss_qt/settings_window.py +1 -1
@@ 1,6 1,6 @@
from PyQt5 import QtCore, QtWidgets
from PyQt5.QtCore import QSettings
from PyQt5.QtWidgets import QDialog
from PyQt5 import QtCore, QtWidgets

from nnrss_qt.default_values import DefaultValues


M nnrss_qt/wizard.py => nnrss_qt/wizard.py +1 -1
@@ 1,6 1,6 @@
from PyQt5 import QtCore, QtWidgets
from PyQt5.QtCore import QSettings
from PyQt5.QtWidgets import QWizard
from PyQt5 import QtCore, QtWidgets

from nnrss_qt.default_values import DefaultValues


M setup.cfg => setup.cfg +7 -0
@@ 2,3 2,10 @@
max-line-length = 88
ignore = E203, W503

[isort]
multi_line_output = 3
include_trailing_comma = True
force_grid_wrap = 0
use_parentheses = True
ensure_newline_before_comments = True
line_length = 88