Skip to content

Commit 8ee0e75

Browse files
committed
Fix lint issues
1 parent 1736e62 commit 8ee0e75

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

readthedocs/integrations/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def get(self, *args, **kwargs):
199199
def subclass(self, instance):
200200
return self._get_subclass_replacement(instance)
201201

202-
def create(self, *args, **kwargs): # pylint: disable=unused-argument
202+
def create(self, **kwargs): # pylint: disable=unused-argument
203203
"""Override of create method to use subclass instance instead
204204
205205
Instead of using the underlying Integration model to create this
@@ -295,7 +295,7 @@ class GenericAPIWebhook(Integration):
295295
class Meta:
296296
proxy = True
297297

298-
def save(self, *args, **kwargs):
298+
def save(self, commit=True):
299299
"""Ensure model has token data before saving"""
300300
try:
301301
token = self.provider_data.get('token')
@@ -305,7 +305,7 @@ def save(self, *args, **kwargs):
305305
if token is None:
306306
token = default_token()
307307
self.provider_data = {'token': token}
308-
super(GenericAPIWebhook, self).save(*args, **kwargs)
308+
super(GenericAPIWebhook, self).save(commit)
309309

310310
@property
311311
def token(self):

readthedocs/wsgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# This application object is used by any WSGI server configured to use this
88
# file. This includes Django's development server, if the WSGI_APPLICATION
99
# setting points here.
10-
from django.core.wsgi import get_wsgi_application
10+
from django.core.wsgi import get_wsgi_application # pylint: disable=wrong-import-position
1111
application = get_wsgi_application()
1212

1313
# Apply WSGI middleware here.

0 commit comments

Comments
 (0)