Skip to content

Commit 5630fad

Browse files
committed
Allow some specific exceptions
1 parent 5b240bc commit 5630fad

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

readthedocs/core/utils/extend.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ def get_override_class(proxy_class, default_class=None):
3434

3535
class SettingsOverrideMeta(type):
3636

37-
"""Meta class for passing along classmethod class to the underlying
38-
class."""
37+
"""Meta class for passing along classmethod class to the underlying class.""" # noqa
3938

4039
def __getattr__(cls, attr): # noqa: pep8 false positive
4140
proxy_class = get_override_class(cls, getattr(cls, '_default_class'))

readthedocs/doc_builder/environments.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,7 @@ def run_command_class(self, cls, cmd, **kwargs):
391391

392392
@property
393393
def successful(self):
394-
"""Is build completed, without top level failures or failing
395-
commands."""
394+
"""Is build completed, without top level failures or failing commands.""" # noqa
396395
return (self.done and self.failure is None and
397396
all(cmd.successful for cmd in self.commands))
398397

readthedocs/restapi/views/model_views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def canonical_url(self, request, **kwargs):
130130
})
131131

132132
@decorators.detail_route(permission_classes=[permissions.IsAdminUser], methods=['post'])
133-
def sync_versions(self, request, **kwargs):
133+
def sync_versions(self, request, **kwargs): # noqa: D205
134134
"""
135135
Sync the version data in the repo (on the build server) with what we
136136
have in the database.

0 commit comments

Comments
 (0)