Skip to content

Commit ef4757f

Browse files
committed
Polish doc strings and review tox.ini file for flake8
1 parent 50b5c71 commit ef4757f

File tree

7 files changed

+25
-24
lines changed

7 files changed

+25
-24
lines changed

atlassian/bitbucket/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2658,7 +2658,7 @@ def download_repo_archive(
26582658
:param at: string: Optional, the commit to download an archive of; if not supplied, an archive of the default branch is downloaded
26592659
:param filename: string: Optional, a filename to include the "Content-Disposition" header
26602660
:param format: string: Optional, the format to stream the archive in; must be one of: zip, tar, tar.gz or tgz. If not specified, then the archive will be in zip format.
2661-
:param paths: string: Optional, path to include in the streamed archive
2661+
:param path: string: Optional, path to include in the streamed archive
26622662
:param prefix: string: Optional, a prefix to apply to all entries in the streamed archive; if the supplied prefix does not end with a trailing /, one will be added automatically
26632663
:param chunk_size: int: Optional, download chunk size. Defeault is 128
26642664
"""

atlassian/bitbucket/cloud/workspaces/projects.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ def create(self, name, key, description, is_private=True, avatar=None):
3838
3939
:return: The created project object
4040
41-
API docs: https://developer.atlassian.com/bitbucket/api/2/reference/resource/workspaces/%7Bworkspace%7D/projects#post
41+
API docs:
42+
https://developer.atlassian.com/bitbucket/api/2/reference/resource/workspaces/%7Bworkspace%7D/projects#post
4243
"""
4344
data = {
4445
"name": name,
@@ -51,12 +52,12 @@ def create(self, name, key, description, is_private=True, avatar=None):
5152
def each(self, q=None, sort=None):
5253
"""
5354
Get all projects in the workspace matching the criteria.
54-
5555
:param q: string (default is None): Query string to narrow down the response.
56-
See https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering for details.
56+
See for details:
57+
https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering
5758
:param sort: string (default is None): Name of a response property to sort results.
58-
See https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering for details.
59-
59+
See for details:
60+
https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering
6061
:return: A generator for the project objects
6162
6263
API docs: https://developer.atlassian.com/bitbucket/api/2/reference/resource/workspaces/%7Bworkspace%7D/projects#get

atlassian/bitbucket/server/projects/repos/__init__.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,11 @@ def download_archive(self, dest_fd, at=None, filename=None, format=None, path=No
286286
:param dest_fd: a file-like object to which the archive will be written
287287
:param at: string: Optional, the commit to download an archive of; if not supplied, an archive of the default branch is downloaded
288288
:param filename: string: Optional, a filename to include the "Content-Disposition" header
289-
:param format: string: Optional, the format to stream the archive in; must be one of: zip, tar, tar.gz or tgz. If not specified, then the archive will be in zip format.
290-
:param paths: string: Optional, path to include in the streamed archive
291-
:param prefix: string: Optional, a prefix to apply to all entries in the streamed archive; if the supplied prefix does not end with a trailing /, one will be added automatically
289+
:param format: string: Optional, the format to stream the archive in; must be one of: zip, tar, tar.gz or tgz.
290+
If not specified, then the archive will be in zip format.
291+
:param path: string: Optional, path to include in the streamed archive
292+
:param prefix: string: Optional, a prefix to apply to all entries in the streamed archive;
293+
if the supplied prefix does not end with a trailing /, one will be added automatically
292294
:param chunk_size: int: Optional, download chunk size. Defeault is 128
293295
"""
294296
params = {}

atlassian/crowd.py

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,15 @@ def user_activate(self, username):
6161

6262
def user_create(self, username, active, first_name, last_name, display_name, email, password=None):
6363
"""
64-
Create new user
65-
66-
:param active: bool, OPTIONAL: password can be auto-generated if not included
67-
username (string)
68-
active (bool)
69-
first-name (string)
70-
last-name (string)
71-
display-name (string)
72-
email (string)
73-
password (string, optional)
74-
64+
Create new user method
65+
:param active: bool: OPTIONAL: password can be auto-generated if not included
66+
:param username: string: username
67+
:param active: bool:
68+
:param first_name: string:
69+
:param last_name: string:
70+
:param display_name: string:
71+
:param email: string:
72+
:param password: string: OPTIONAL:
7573
:return:
7674
"""
7775

atlassian/jira.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1726,6 +1726,7 @@ def projects(self, included_archived=None, expand=None):
17261726
"""Returns all projects which are visible for the currently logged in user.
17271727
If no user is logged in, it returns the list of projects that are visible when using anonymous access.
17281728
:param included_archived: boolean whether to include archived projects in response, default: false
1729+
:param expand:
17291730
:return:
17301731
"""
17311732
params = {}
@@ -1919,8 +1920,8 @@ def update_version(
19191920
:param description: The version description
19201921
:param is_archived:
19211922
:param is_released:
1922-
:param startDate: The Start Date in isoformat. Example value is "2015-04-11T15:22:00.000+10:00"
1923-
:param releaseDate: The Release Date in isoformat. Example value is "2015-04-11T15:22:00.000+10:00"
1923+
:param start_date: The Start Date in isoformat. Example value is "2015-04-11T15:22:00.000+10:00"
1924+
:param release_date: The Release Date in isoformat. Example value is "2015-04-11T15:22:00.000+10:00"
19241925
"""
19251926
payload = {
19261927
"name": name,

atlassian/xray.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# coding=utf-8
22
import logging
33
import re
4-
from requests import HTTPError
54
from .rest_client import AtlassianRestAPI
65

76
log = logging.getLogger(__name__)

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ skip_install = true
2323
deps =
2424
flake8
2525
flake8-no-fstring
26-
commands = flake8
26+
commands = flake8 {[base]linting_targets}
2727

2828
[testenv:pylint]
2929
basepython = python3

0 commit comments

Comments
 (0)