From df585f56fb0bac5fc77fbbfc44276fe8c1f85f83 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Thu, 30 Mar 2023 21:05:12 +0200 Subject: Get rid of pylint directives Since we are migrating to ruff, these are not used anymore. --- quarg/actions.py | 1 - quarg/database/tables.py | 5 ----- quarg/main.py | 2 -- quarg/quassel/formatter.py | 2 -- 4 files changed, 10 deletions(-) diff --git a/quarg/actions.py b/quarg/actions.py index 6aadc3d..19ce59c 100644 --- a/quarg/actions.py +++ b/quarg/actions.py @@ -7,7 +7,6 @@ import dateutil.relativedelta from quarg.quassel.types import BufferType, MessageFlag, MessageType from quarg.utils import errx, parse_isodate -# pylint: disable=too-few-public-methods, unsupported-membership-test class ParseEnum(argparse.Action, metaclass=ABCMeta): def __call__(self, parser, namespace, value, option_string=None): diff --git a/quarg/database/tables.py b/quarg/database/tables.py index 6e92c14..9b819d9 100644 --- a/quarg/database/tables.py +++ b/quarg/database/tables.py @@ -5,15 +5,10 @@ from sqlalchemy.types import BigInteger, Boolean, DateTime, Integer, Text, TypeD from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship -# pylint: disable=too-few-public-methods # Timestamps are saved in the database in UTC without timezone info, so attach # a UTC timezone to the datetime object class DateTimeUTC(TypeDecorator): - # pylint complains that process_literal_param and python_type are - # abstract but not overriden. This seems to not be necessary with - # SQLAlchemy, so squash those warnings - # pylint: disable=abstract-method impl = TypeEngine cache_ok = True diff --git a/quarg/main.py b/quarg/main.py index 9fde869..7deb900 100644 --- a/quarg/main.py +++ b/quarg/main.py @@ -13,7 +13,6 @@ import quarg.quassel.formatter as formatter from quarg.database.tables import Backlog, Buffer, Network, QuasselUser, Sender from quarg.utils import errx -# pylint: disable=line-too-long cli = argparse.ArgumentParser() cli.add_argument('keyword', nargs='*', help='match messages containing this keyword') cli.add_argument('-d', action='store_true', dest='debug', help='print debug and SQL query information') @@ -37,7 +36,6 @@ date_matchers.add_argument('--around', action=actions.ParseAround, metavar='DATE joined_group = matchers.add_mutually_exclusive_group() joined_group.add_argument('--joined', default=None, action='store_true', dest='joined', help='match buffers which are currently joined') joined_group.add_argument('--no-joined', default=None, action='store_false', dest='joined', help='match buffers which are not currently joined') -# pylint: enable=line-too-long Session = sessionmaker() diff --git a/quarg/quassel/formatter.py b/quarg/quassel/formatter.py index 7e7bce6..6a78d7a 100644 --- a/quarg/quassel/formatter.py +++ b/quarg/quassel/formatter.py @@ -61,8 +61,6 @@ def format_kick(msg): return f'<-* {msg.user} has kicked {target} from {msg.buffer}' def format_kill(msg): - # pylint: disable=line-too-long - # As of 2021-04-24 not even Quassel implements printing this message [1]. # They do have a symbol [2] for it, however, so use that along with the message # [1] https://github.com/quassel/quassel/blob/285215315e6f2420724532323a4b1bccae156cb1/src/uisupport/uistyle.cpp#L950 -- cgit v1.2.3-2-gb3c3