Skip to content

Commit 3d01fe7

Browse files
committed
style(bitbucket): Move class attributes to top of class body
Refs VDY-67
1 parent aa1a7b4 commit 3d01fe7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sentry/integrations/bitbucket/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ class BitbucketApiClient(ApiClient, RepositoryClient):
5656

5757
integration_name = IntegrationProviderSlug.BITBUCKET.value
5858

59+
# Bitbucket Cloud defaults to pagelen=10 and caps at 100.
60+
page_size = 100
61+
page_number_limit = 50
62+
5963
def __init__(self, integration: RpcIntegration | Integration):
6064
self.base_url = integration.metadata["base_url"]
6165
self.shared_secret = integration.metadata["shared_secret"]
@@ -109,10 +113,6 @@ def create_comment(self, repo, issue_id, data):
109113
def get_repo(self, repo):
110114
return self.get(BitbucketAPIPath.repository.format(repo=repo))
111115

112-
# Bitbucket Cloud defaults to pagelen=10 and caps at 100.
113-
page_size = 100
114-
page_number_limit = 50
115-
116116
def _get_all_from_paginated(
117117
self,
118118
path: str,

0 commit comments

Comments
 (0)