Skip to content

Commit 0c01a28

Browse files
committed
Static analyzer: misspelling words
1 parent 6695a1c commit 0c01a28

22 files changed

+81
-78
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
python-version: [ '3.6', '3.7', '3.8', '3.9' ]
21+
python-version: [ '3.6', '3.7', '3.8', '3.9', '3.11' ]
2222

2323
steps:
2424
- uses: actions/checkout@v3

atlassian/bamboo.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ def build_result(
509509
Returns details of a specific build result
510510
:param expand: expands build result details on request. Possible values are: artifacts, comments, labels,
511511
Jira Issues, stages. stages expand is available only for top level plans. It allows to drill down to job results
512-
using stages.stage.results.result. All expand parameters should contain results.result prefix.
512+
using stages.stage.results.result. All expand parameters should contain results. Result prefix.
513513
:param build_key: Should be in the form XX-YY[-ZZ]-99, that is, the last token should be an integer representing
514514
the build number
515515
:param include_all_states
@@ -536,7 +536,7 @@ def build_latest_result(self, plan_key, expand=None, include_all_states=False):
536536
Returns details of a latest build result
537537
:param expand: expands build result details on request. Possible values are: artifacts, comments, labels,
538538
Jira Issues, stages. stages expand is available only for top level plans. It allows to drill down to job results
539-
using stages.stage.results.result. All expand parameters should contain results.result prefix.
539+
using stages.stage.results.result. All expand parameters should contain results. Result prefix.
540540
:param plan_key: Should be in the form XX-YY[-ZZ]
541541
:param include_all_states:
542542
"""

atlassian/bitbucket/__init__.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -695,10 +695,10 @@ def update_project_condition(self, project_key, condition, id_condition):
695695

696696
def delete_project_condition(self, project_key, id_condition):
697697
"""
698-
Request type: DELETE
699698
Delete a specific condition for this repository slug inside project.
700699
For further information visit:
701700
https://docs.atlassian.com/bitbucket-server/rest/5.16.0/bitbucket-default-reviewers-rest.html#idm52264896304
701+
Request type: DELETE
702702
:projectKey: str- project key involved
703703
:idCondition: int - condition id involved
704704
:return:
@@ -958,7 +958,7 @@ def repo_grant_user_permissions(self, project_key, repo_key, username, permissio
958958
Grant the specified repository permission to a specific user
959959
:param project_key: The project key
960960
:param repo_key: The repository key (slug)
961-
:param username: user name to be granted
961+
:param username: username to be granted
962962
:param permission: the repository permissions available are 'REPO_ADMIN', 'REPO_WRITE' and 'REPO_READ'
963963
:return:
964964
"""
@@ -975,7 +975,7 @@ def repo_remove_user_permissions(self, project_key, repo_key, username):
975975
if they do not have a higher project or global permission.
976976
:param project_key: The project key
977977
:param repo_key: The repository key (slug)
978-
:param username: user name to be granted
978+
:param username: username to be granted
979979
:return:
980980
"""
981981
url = self._url_repo_users(project_key, repo_key)
@@ -1567,7 +1567,7 @@ def get_pull_requests(
15671567
:param project_key:
15681568
:param repository_slug:
15691569
:param state:
1570-
:param order: OPTIONAL: defaults to NEWEST) the order to return pull requests in, either OLDEST
1570+
:param order: OPTIONAL: defaults to NEWEST the order to return pull requests in, either OLDEST
15711571
(as in: "oldest first") or NEWEST.
15721572
:param limit:
15731573
:param start:
@@ -1915,7 +1915,7 @@ def update_pull_request_comment(
19151915
Update the text of a comment.
19161916
Only the user who created a comment may update it.
19171917
1918-
Note: the supplied supplied JSON object must contain a version
1918+
Note: the supplied JSON object must contain a version
19191919
that must match the server's version of the comment
19201920
or the update will fail.
19211921
"""
@@ -2410,7 +2410,7 @@ def get_file_list(
24102410
):
24112411
"""
24122412
Retrieve a page of files from particular directory of a repository.
2413-
The search is done recursively, so all files from any sub-directory of the specified directory will be returned.
2413+
The search is done recursively, so all files from any subdirectory of the specified directory will be returned.
24142414
The authenticated user must have REPO_READ permission for the specified repository to call this resource.
24152415
:param start:
24162416
:param project_key:
@@ -2880,10 +2880,10 @@ def update_repo_condition(self, project_key, repo_key, condition, id_condition):
28802880

28812881
def delete_repo_condition(self, project_key, repo_key, id_condition):
28822882
"""
2883-
Request type: DELETE
28842883
Delete a specific condition for this repository slug inside project.
28852884
For further information visit:
28862885
https://docs.atlassian.com/bitbucket-server/rest/5.16.0/bitbucket-default-reviewers-rest.html#idm8287339888
2886+
Request type: DELETE
28872887
:projectKey: str- project key involved
28882888
:repoKey: str - repo key involved
28892889
:idCondition: int - condition id involved

atlassian/bitbucket/cloud/common/builds.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ def commit(self):
6262

6363
@property
6464
def website(self):
65-
"""Return the url to the builds webpage.
66-
65+
"""
66+
Return the url to the build's webpage.
6767
This url points to the build's frontend website (Pipelines, Jenkins ...)
6868
"""
6969
return self.get_data("url")

atlassian/bitbucket/cloud/repositories/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def each(self, role=None, q=None, sort=None):
127127
"""
128128
Get all repositories in the workspace matching the criteria.
129129
130-
:param role: string: Filters the workspaces based on the authenticated user"s role on each workspace.
130+
:param role: string: Filters the workspaces based on the authenticated user's role on each workspace.
131131
* member: returns a list of all the workspaces which the caller is a member of
132132
at least one workspace group or repository
133133
* collaborator: returns a list of workspaces which the caller has write access

atlassian/bitbucket/cloud/repositories/commits.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ def parents(self):
9292

9393
def statuses(self):
9494
"""
95-
Return generator object of the statuses endpoint.
96-
95+
Return generator object of the status's endpoint.
9796
API docs: https://developer.atlassian.com/cloud/bitbucket/rest/api-group-commit-statuses/#api-repositories-workspace-repo-slug-commit-commit-statuses-get
9897
"""
9998
return self._get_paged("statuses")
@@ -146,7 +145,6 @@ def get_build(self, key):
146145
def comments(self):
147146
"""
148147
Return generator object of the comments endpoint.
149-
150148
API docs: https://developer.atlassian.com/cloud/bitbucket/rest/api-group-commits/#api-repositories-workspace-repo-slug-commit-commit-comments-get
151149
"""
152150
for comment in self._get_paged("comments"):

atlassian/bitbucket/cloud/repositories/defaultReviewers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def get(self, user):
6161
"""
6262
Returns the default reviewer in this repository.
6363
64-
:param user: string: The requested user name
64+
:param user: string: The requested username
6565
6666
:return: The requested DefaultReviewer object, None if not a default reviewer
6767

atlassian/bitbucket/cloud/repositories/pipelines.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def trigger(self, branch="master", commit=None, pattern=None, variables=None):
2727
2. Specific commit on a branch (additionally specify ``commit``)
2828
3. Specific pipeline (additionally specify ``pattern``. ``commit`` is optional here)
2929
30-
Variables has to be a list of dictionaries:
30+
Variables have to be a list of dictionaries:
3131
3232
{
3333
"key": "var1key",

atlassian/bitbucket/server/common/permissions.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def admin(self, name):
2424

2525
def write(self, name):
2626
"""
27-
Add the write permission for a group/user.
27+
Add to write permission for a group/user.
2828
"""
2929
return self.add(name, self.__permission(self.WRITE))
3030

@@ -54,7 +54,7 @@ def each(self, filter=None):
5454
"""
5555
Get all groups/users.
5656
57-
:params filter: string: If specified only group/user names containing the supplied string will be returned
57+
:params filter: string: If specified only group/usernames containing the supplied string will be returned
5858
5959
:return: A generator for the group/user permission objects
6060
@@ -76,7 +76,7 @@ def each_none(self, filter=None):
7676
"""
7777
Get all not granted groups/users.
7878
79-
:params filter: string: If specified only group/user names containing the supplied string will be returned
79+
:params filter: string: If specified only group/usernames containing the supplied string will be returned
8080
8181
:return: A generator for the group/user permission objects
8282

atlassian/bitbucket/server/globalPermissions.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def admin(self, name):
3232

3333
def sys_admin(self, name):
3434
"""
35-
Add the sys admin permission for a group/user.
35+
Add the sysadmin permission for a group/user.
3636
"""
3737
return self.add(name, self.__permission(self.SYS_ADMIN))
3838

@@ -54,7 +54,7 @@ def each(self, filter=None):
5454
"""
5555
Get all groups/users.
5656
57-
:params filter: string: If specified only group/user names containing the supplied string will be returned
57+
:params filter: string: If specified only group/usernames containing the supplied string will be returned
5858
5959
:return: A generator for the group/user permission objects
6060
@@ -74,7 +74,7 @@ def each_none(self, filter=None):
7474
"""
7575
Get all not granted groups/users.
7676
77-
:params filter: string: If specified only group/user names containing the supplied string will be returned
77+
:params filter: string: If specified only group/usernames containing the supplied string will be returned
7878
7979
:return: A generator for the group/user permission objects
8080

atlassian/confluence.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ def get_page_by_id(self, page_id, expand=None, status=None, version=None):
328328
:param version: (int)
329329
:param expand: OPTIONAL: Default value: history,space,version
330330
We can also specify some extensions such as extensions.inlineProperties
331-
(for getting inline comment-specific properties) or extensions.resolution
331+
(for getting inline comment-specific properties) or extensions. Resolution
332332
for the resolution status of each comment in the results
333333
:return:
334334
"""
@@ -916,7 +916,7 @@ def get_content_template(self, template_id):
916916
@deprecated(version="3.7.0", reason="Use get_blueprint_templates()")
917917
def get_all_blueprints_from_space(self, space, start=0, limit=None, expand=None):
918918
"""
919-
Get all users blue prints from space. Experimental API
919+
Get all users blueprints from space. Experimental API
920920
:param space: Space Key
921921
:param start: OPTIONAL: The start point of the collection to return. Default: None (0).
922922
:param limit: OPTIONAL: The limit of the number of pages to return, this may be restricted by
@@ -2286,7 +2286,7 @@ def get_space_property(self, space_key, expand=None):
22862286
def get_user_details_by_username(self, username, expand=None):
22872287
"""
22882288
Get information about a user through username
2289-
:param username: The user name
2289+
:param username: The username
22902290
:param expand: OPTIONAL expand for get status of user.
22912291
Possible param is "status". Results are "Active, Deactivated"
22922292
:return: Returns the user details
@@ -2537,7 +2537,7 @@ def check_access_mode(self):
25372537

25382538
def anonymous(self):
25392539
"""
2540-
Get information about the how anonymous is represented in confluence
2540+
Get information about how anonymous is represented in confluence
25412541
:return:
25422542
"""
25432543
try:
@@ -2667,9 +2667,9 @@ def check_long_task_result(self, task_id, expand=None):
26672667
def get_pdf_download_url_for_confluence_cloud(self, url):
26682668
"""
26692669
Confluence cloud does not return the PDF document when the PDF
2670-
export is initiated. Instead it starts a process in the background
2670+
export is initiated. Instead, it starts a process in the background
26712671
and provides a link to download the PDF once the process completes.
2672-
This functions polls the long running task page and returns the
2672+
This functions polls the long-running task page and returns the
26732673
download url of the PDF.
26742674
:param url: URL to initiate PDF export
26752675
:return: Download url for PDF file
@@ -2895,7 +2895,7 @@ def get_space_permissions(self, space_key):
28952895

28962896
def get_subtree_of_content_ids(self, page_id):
28972897
"""
2898-
Get sub tree of page ids
2898+
Get subtree of page ids
28992899
:param page_id:
29002900
:return: Set of page ID
29012901
"""

atlassian/insight.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def __cloud_init(self, *args, **kwargs):
4242
kwargs["url"] = "https://api.atlassian.com"
4343
# set cloud back to true and return
4444
kwargs["cloud"] = True
45-
# Insight cloud is particular about its headers..
45+
# Insight cloud is particular about its headers.
4646
self.default_headers = {"Accept": "application/json"}
4747
return args, kwargs
4848

@@ -627,7 +627,7 @@ def update_issue_insight_field(self, key, field_id, insight_keys, add=False):
627627
Set the value of an Insight field.
628628
Args:
629629
key (str): Jira issue key, eg. SFT-446
630-
field_id (str): The internal Jira name of the Insight field, eg. customfield_10200
630+
field_id (str): The internal Jira name of the Insight field, e.g. customfield_10200
631631
insight_keys (list): List of Insight objects to associate with the field. Limited
632632
to 20 objects. If the field only takes a single object pass a single value list.
633633
add (bool, optional): Add to the existing field rather than setting the field value.

0 commit comments

Comments
 (0)