Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
humitos committed May 7, 2019
1 parent c37748b commit 7985539
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 15 deletions.
1 change: 0 additions & 1 deletion readthedocs/api/v3/mixins.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from django.contrib.auth.models import User
from django.shortcuts import get_object_or_404
from rest_framework.exceptions import NotFound

Expand Down
2 changes: 1 addition & 1 deletion readthedocs/api/v3/urls.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from .routers import DefaultRouterWithNesting
from .views import (
BuildsViewSet,
BuildsCreateViewSet,
BuildsViewSet,
ProjectsViewSet,
SubprojectRelationshipViewSet,
TranslationRelationshipViewSet,
Expand Down
19 changes: 8 additions & 11 deletions readthedocs/api/v3/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,7 @@ def get_view_description(self, *args, **kwargs): # pylint: disable=arguments-di

@action(detail=True, methods=['get'])
def superproject(self, request, project_slug):
"""
Return the superproject of a ``Project``.
"""
"""Return the superproject of a ``Project``."""
project = self.get_object()
try:
superproject = project.superprojects.first().parent
Expand All @@ -180,15 +178,15 @@ class SubprojectRelationshipViewSet(APIv3Settings, ProjectQuerySetMixin,
ListModelMixin, GenericViewSet):

# Markdown docstring exposed at BrowsableAPIRenderer.
"""
List subprojects of a ``Project``.
"""

"""List subprojects of a ``Project``."""

# Private/Internal docstring

"""
The main query is done via the ``NestedViewSetMixin`` using the
``parents_query_lookups`` defined when registering the urls.
"""
""" # noqa

model = Project
lookup_field = 'slug'
Expand All @@ -202,15 +200,14 @@ class TranslationRelationshipViewSet(APIv3Settings, ProjectQuerySetMixin,
ListModelMixin, GenericViewSet):

# Markdown docstring exposed at BrowsableAPIRenderer.
"""
List translations of a ``Project``.
"""

"""List translations of a ``Project``."""

# Private/Internal docstring
"""
The main query is done via the ``NestedViewSetMixin`` using the
``parents_query_lookups`` defined when registering the urls.
"""
""" # noqa

model = Project
lookup_field = 'slug'
Expand Down
2 changes: 0 additions & 2 deletions readthedocs/oauth/services/gitlab.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@

from readthedocs.builds.utils import get_gitlab_username_repo
from readthedocs.integrations.models import Integration
from readthedocs.integrations.utils import get_secret
from readthedocs.projects.models import Project

from ..models import RemoteOrganization, RemoteRepository
from .base import Service, SyncServiceError



try:
from urlparse import urljoin, urlparse
except ImportError:
Expand Down

0 comments on commit 7985539

Please sign in to comment.