Skip to content

Commit cce5c3f

Browse files
committed
Polish for linters
1 parent a97d29c commit cce5c3f

File tree

2 files changed

+11
-17
lines changed

2 files changed

+11
-17
lines changed

atlassian/bitbucket/__init__.py

+10-17
Original file line numberDiff line numberDiff line change
@@ -2190,41 +2190,34 @@ def get_commits(
21902190
if limit:
21912191
params["limit"] = limit
21922192
return self._get_paged(url, params=params)
2193-
2194-
def get_commit_changes(
2195-
self,
2196-
project_key,
2197-
repository_slug,
2198-
hash_newest=None,
2199-
merges="include",
2200-
commitId=None
2201-
):
2193+
2194+
def get_commit_changes(self, project_key, repository_slug, hash_newest=None, merges="include", commit_id=None):
22022195
"""
22032196
Get commit list from repo
22042197
:param project_key:
22052198
:param repository_slug:
22062199
:param hash_newest:
22072200
:param merges: OPTIONAL: include|exclude|only if present, controls how merge commits should be filtered.
2208-
:param commitId
2201+
:param commit_id
22092202
:return:
22102203
"""
2211-
url = self._url_commit_c(project_key, repository_slug, commitId=commitId)
2204+
url = self._url_commit_c(project_key, repository_slug, commit_id=commit_id)
22122205
params = {"merges": merges}
22132206
if hash_newest:
22142207
params["until"] = hash_newest
22152208
return self.get(url, params=params)
2216-
2217-
def _url_commit_c(self, project_key, repository_slug, api_root=None, api_version=None, commitId=None):
2209+
2210+
def _url_commit_c(self, project_key, repository_slug, api_root=None, api_version=None, commit_id=None):
22182211
return "{}/commits/{}/changes".format(
22192212
self._url_repo(
22202213
project_key,
22212214
repository_slug,
22222215
api_root=api_root,
22232216
api_version=api_version,
22242217
),
2225-
commitId
2218+
commit_id,
22262219
)
2227-
2220+
22282221
def _url_commit(
22292222
self,
22302223
project_key,
@@ -2347,7 +2340,7 @@ def get_code_insights_report(self, project_key, repository_slug, commit_id, repo
23472340
Retrieve the specified code-insights report.
23482341
:projectKey: str
23492342
:repositorySlug: str
2350-
:commitId: str
2343+
:commit_id: str
23512344
:report_key: str
23522345
"""
23532346
url = self._url_code_insights_report(project_key, repository_slug, commit_id, report_key)
@@ -2358,7 +2351,7 @@ def delete_code_insights_report(self, project_key, repository_slug, commit_id, r
23582351
Delete a report for the given commit. Also deletes any annotations associated with this report.
23592352
:projectKey: str
23602353
:repositorySlug: str
2361-
:commitId: str
2354+
:commit_id: str
23622355
:report_key: str
23632356
"""
23642357
url = self._url_code_insights_report(project_key, repository_slug, commit_id, report_key)

atlassian/rest_client.py

+1
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ def put(
385385
Partial modification of resource by PATCH Method
386386
LINK: https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PATCH
387387
"""
388+
388389
def patch(
389390
self,
390391
path,

0 commit comments

Comments
 (0)