Skip to content

Commit

Permalink
Add linter ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnesbitt committed Jun 14, 2024
1 parent 637830d commit c5083ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dandiapi/api/services/publish/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def publish_asset(*, asset: Asset) -> None:
locked_asset.save()


def _lock_dandiset_for_publishing(*, user: User, dandiset: Dandiset) -> None:
def _lock_dandiset_for_publishing(*, user: User, dandiset: Dandiset) -> None: # noqa: C901
"""
Prepare a dandiset to be published by locking it and setting its status to PUBLISHING.
Expand Down
2 changes: 1 addition & 1 deletion dandiapi/api/views/dandiset.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def unembargo(self, request, dandiset__pk):
)
# TODO: move these into a viewset
@action(methods=['GET', 'PUT'], detail=True)
def users(self, request, dandiset__pk):
def users(self, request, dandiset__pk): # noqa: C901
dandiset: Dandiset = self.get_object()
if request.method == 'PUT':
if dandiset.embargo_status == Dandiset.EmbargoStatus.UNEMBARGOING:
Expand Down

0 comments on commit c5083ff

Please sign in to comment.