Skip to content

Commit 0c01a28

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

File tree

22 files changed

+81
-78
lines changed

22 files changed

+81
-78
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 7 additions & 7 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 3 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 3 additions & 3 deletions
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

Lines changed: 3 additions & 3 deletions
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

0 commit comments

Comments
 (0)