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]
|
[MESSAGES CONTROL]
|
||||||
disable=
|
disable=
|
||||||
C0412,
|
C0412,
|
||||||
E1101,
|
|
||||||
R0801, # needs to remain disabled see https://github.com/PyCQA/pylint/issues/214
|
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
|
return self.description
|
||||||
|
|
||||||
# see https://github.com/PyCQA/pylint-django/issues/94 for why W0221
|
# 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
|
||||||
def save(self, *args, **kwargs): # pylint: disable=W0221,W0613
|
|
||||||
# this assignment is needed to preserve changes made to a Transmitter
|
# this assignment is needed to preserve changes made to a Transmitter
|
||||||
# through the admin UI
|
# through the admin UI
|
||||||
self.id = None # pylint: disable=C0103, W0201
|
self.id = None # pylint: disable=C0103, W0201
|
||||||
|
|
|
@ -41,9 +41,8 @@ def decode_recent_data():
|
||||||
periodic_task()
|
periodic_task()
|
||||||
|
|
||||||
|
|
||||||
# after python3, remove W0613 disable
|
|
||||||
@APP.on_after_finalize.connect
|
@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"""
|
"""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')
|
sender.add_periodic_task(RUN_DAILY, update_all_tle.s(), name='update-all-tle')
|
||||||
|
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -39,7 +39,7 @@ deps =
|
||||||
pylint==2.3.1
|
pylint==2.3.1
|
||||||
pylint-django==2.0.9
|
pylint-django==2.0.9
|
||||||
extras = dev
|
extras = dev
|
||||||
commands = pylint --rcfile=.pylintrc3 \
|
commands = pylint \
|
||||||
{envsitepackagesdir}/db \
|
{envsitepackagesdir}/db \
|
||||||
{envsitepackagesdir}/auth0login
|
{envsitepackagesdir}/auth0login
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue