tox: Bump 'pylint' and 'pylint-django' versions
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>spacecruft
parent
d92e655cb5
commit
79382a5c2f
|
@ -11,12 +11,12 @@ def existing_uuid(value):
|
|||
"""ensures the UUID is existing and valid"""
|
||||
try:
|
||||
Transmitter.objects.get(uuid=value)
|
||||
except Transmitter.DoesNotExist:
|
||||
except Transmitter.DoesNotExist as error:
|
||||
raise ValidationError(
|
||||
_('%(value)s is not a valid uuid'),
|
||||
code='invalid',
|
||||
params={'value': value},
|
||||
)
|
||||
) from error
|
||||
|
||||
|
||||
class TransmitterModelForm(BSModalModelForm): # pylint: disable=too-many-ancestors
|
||||
|
|
|
@ -390,8 +390,8 @@ class TransmitterEntry(models.Model):
|
|||
def __str__(self):
|
||||
return self.description
|
||||
|
||||
# see https://github.com/PyCQA/pylint-django/issues/94 for why W0221
|
||||
def save(self, *args, **kwargs): # pylint: disable=W0221
|
||||
# see https://github.com/PyCQA/pylint-django/issues/94
|
||||
def save(self, *args, **kwargs): # pylint: disable=W0222
|
||||
# this assignment is needed to preserve changes made to a Transmitter
|
||||
# through the admin UI
|
||||
self.id = None # pylint: disable=C0103, W0201
|
||||
|
|
5
tox.ini
5
tox.ini
|
@ -5,8 +5,8 @@ envlist = flake8,isort,yapf,pylint,build,pytest,docs
|
|||
flake8 = 3.7.9
|
||||
isort = 5.7.0
|
||||
yapf = 0.30.0
|
||||
pylint = 2.4.4
|
||||
pylint_django = 2.0.15
|
||||
pylint = 2.6.0
|
||||
pylint_django = 2.4.2
|
||||
sphinx_rtd_theme = 0.4.3
|
||||
twine = 3.1.1
|
||||
|
||||
|
@ -45,6 +45,7 @@ deps =
|
|||
pylint=={[depversions]pylint}
|
||||
pylint-django=={[depversions]pylint_django}
|
||||
extras = dev
|
||||
setenv = DJANGO_SETTINGS_MODULE = db.settings
|
||||
commands = pylint \
|
||||
{envsitepackagesdir}/db \
|
||||
{envsitepackagesdir}/auth0login
|
||||
|
|
Loading…
Reference in New Issue