Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion examples/bitbucket/stash_user_auth_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ def report(limit=200, include_in_active=False):
else:
full_date = None
if include_in_active or user.get("active"):
output = f"|{user.get('active')}|{user.get('displayName')}|{user.get('emailAddress')}|{full_date}|"
output = "|{}|{}|{}|{}|".format(
user.get("active"), user.get("displayName"), user.get("emailAddress"), full_date
)
print(output)


Expand Down
4 changes: 2 additions & 2 deletions examples/jira/jira_dc_create_support_zips.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
for task in jira.check_support_zip_status(zips_creation_task_id)["tasks"]:

if task["status"] == "IN_PROGRESS":
print(f"file {task['fileName']} {task['progressMessage']}")
print("file {} {}".format(task["fileName"], task["progressMessage"]))

if task["fileName"] not in in_progress_zips:
in_progress_zips.append(task["fileName"])
Expand All @@ -25,7 +25,7 @@
with open(task["fileName"], "wb") as fp:
fp.write(support_zip)

print(f"{task['fileName']} written.")
print("{} written.".format(task["fileName"]))

if task["fileName"] in in_progress_zips:
in_progress_zips.remove(task["fileName"])
Expand Down
12 changes: 9 additions & 3 deletions examples/jira/jira_jql_fetcher_as_weekly_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,17 @@ def __get_changes_of_cases(self, histories):
continue
output = [
history.get("author").get("name"),
f"{change_date:%Y-%m-%d}",
change_date.format("%Y-%m-%d"),
] # person who did the change
changes = ["Listing all items that changed:"]
for item in history.get("items"):
changes.append(f"{item['field']} - {item['fromString']}- {item['toString']}")
changes.append(
"{} - {}- {}".format(
item["field"],
item["fromString"],
item["toString"],
)
)
output.append("\t".join(changes))
return " - ".join(output)

Expand All @@ -84,7 +90,7 @@ def console_output(self, delimiter="|", console=True):
number = 1
data = []
for case in self.cases:
print(f"Processing case #{number}")
print("Processing case #{}".format(number))
output = [
case.get("actor"),
case.get("key"),
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ mock
pytest
pytest-cov
flake8
flake8-no-fstring
black
tox
coverage
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ parallel_show_output = true
[testenv:flake8]
basepython = python3
skip_install = true
deps = flake8
deps =
flake8
flake8-no-fstring
commands = flake8

[testenv:pylint]
Expand Down