pylint: Remove W0603 warning on 'args' and 'kwargs', remove unused Python 2 configuration
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>merge-requests/411/head
parent
70ad7ed3de
commit
fc90760e7c
|
@ -6,5 +6,4 @@ ignored-argument-names=args|kwargs
|
|||
[MESSAGES CONTROL]
|
||||
disable=
|
||||
C0412,
|
||||
E1101,
|
||||
R0801, # needs to remain disabled see https://github.com/PyCQA/pylint/issues/214
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
[MASTER]
|
||||
ignore=_version.py,migrations
|
||||
load-plugins=pylint_django
|
||||
|
||||
[MESSAGES CONTROL]
|
||||
disable=
|
||||
C0412,
|
||||
R0801,
|
|
@ -195,8 +195,7 @@ class TransmitterEntry(models.Model):
|
|||
return self.description
|
||||
|
||||
# see https://github.com/PyCQA/pylint-django/issues/94 for why W0221
|
||||
# after python3, remove W0613 disable
|
||||
def save(self, *args, **kwargs): # pylint: disable=W0221,W0613
|
||||
def save(self, *args, **kwargs): # pylint: disable=W0221
|
||||
# this assignment is needed to preserve changes made to a Transmitter
|
||||
# through the admin UI
|
||||
self.id = None # pylint: disable=C0103, W0201
|
||||
|
|
|
@ -41,9 +41,8 @@ def decode_recent_data():
|
|||
periodic_task()
|
||||
|
||||
|
||||
# after python3, remove W0613 disable
|
||||
@APP.on_after_finalize.connect
|
||||
def setup_periodic_tasks(sender, **kwargs): # pylint: disable=W0613
|
||||
def setup_periodic_tasks(sender, **kwargs):
|
||||
"""Initializes celery tasks that need to run on a scheduled basis"""
|
||||
sender.add_periodic_task(RUN_DAILY, update_all_tle.s(), name='update-all-tle')
|
||||
|
||||
|
|
Loading…
Reference in New Issue