Skip to content

Commit 6695a1c

Browse files
committed
Static analyzer: fix white spaces
1 parent 32b5af2 commit 6695a1c

11 files changed

+52
-57
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -37,38 +37,38 @@ jobs:
3737
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
3838

3939
steps:
40-
- name: Checkout repository
41-
uses: actions/checkout@v3
40+
- name: Checkout repository
41+
uses: actions/checkout@v3
4242

43-
# Initializes the CodeQL tools for scanning.
44-
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v2
46-
with:
47-
languages: ${{ matrix.language }}
48-
# If you wish to specify custom queries, you can do so here or in a config file.
49-
# By default, queries listed here will override any specified in a config file.
50-
# Prefix the list here with "+" to use these queries and those in the config file.
51-
52-
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53-
# queries: security-extended,security-and-quality
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v2
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
5451

55-
56-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
57-
# If this step fails, then you should remove it and run the build manually (see below)
58-
- name: Autobuild
59-
uses: github/codeql-action/autobuild@v2
52+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53+
# queries: security-extended,security-and-quality
6054

61-
# ℹ️ Command-line programs to run using the OS shell.
62-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
6355

64-
# If the Autobuild fails above, remove it and uncomment the following three lines.
65-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
56+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
57+
# If this step fails, then you should remove it and run the build manually (see below)
58+
- name: Autobuild
59+
uses: github/codeql-action/autobuild@v2
6660

67-
# - run: |
68-
# echo "Run, Build Application using script"
69-
# ./location_of_script_within_repo/buildscript.sh
61+
# ℹ️ Command-line programs to run using the OS shell.
62+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
7063

71-
- name: Perform CodeQL Analysis
72-
uses: github/codeql-action/analyze@v2
73-
with:
74-
category: "/language:${{matrix.language}}"
64+
# If the Autobuild fails above, remove it and uncomment the following three lines.
65+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
66+
67+
# - run: |
68+
# echo "Run, Build Application using script"
69+
# ./location_of_script_within_repo/buildscript.sh
70+
71+
- name: Perform CodeQL Analysis
72+
uses: github/codeql-action/analyze@v2
73+
with:
74+
category: "/language:${{matrix.language}}"

.github/workflows/test.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ 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' ]
2222

2323
steps:
24-
- uses: actions/checkout@v3
25-
- name: Build Docker
26-
run: |
27-
make docker-qa-build PYTHON_VERSION=${{matrix.python-version}}
28-
- name: Run Docker
29-
run: |
30-
.github/bump_version ./ minor > atlassian/VERSION
31-
make docker-qa PYTHON_VERSION=${{matrix.python-version}}
32-
- name: Creating coverage report
33-
if: ${{ ( matrix.python-version == '3.8' ) }}
34-
uses: codecov/codecov-action@v3
35-
with:
36-
files: ./coverage.xml
37-
fail_ci_if_error: true
24+
- uses: actions/checkout@v3
25+
- name: Build Docker
26+
run: |
27+
make docker-qa-build PYTHON_VERSION=${{matrix.python-version}}
28+
- name: Run Docker
29+
run: |
30+
.github/bump_version ./ minor > atlassian/VERSION
31+
make docker-qa PYTHON_VERSION=${{matrix.python-version}}
32+
- name: Creating coverage report
33+
if: ${{ ( matrix.python-version == '3.8' ) }}
34+
uses: codecov/codecov-action@v3
35+
with:
36+
files: ./coverage.xml
37+
fail_ci_if_error: true

atlassian/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from .service_desk import ServiceDesk as ServiceManagement
1313
from .xray import Xray
1414

15-
1615
__all__ = [
1716
"Confluence",
1817
"Jira",

atlassian/bitbucket/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from pprint import PrettyPrinter
99
from ..rest_client import AtlassianRestAPI
1010

11-
1211
RE_TIMEZONE = re.compile(r"(\d{2}):(\d{2})$")
1312

1413

docs/index.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
.. Atlassian Python API documentation is linked to HEAD commit,
2-
You can adapt this file completely to your liking, but it should at least
3-
contain the root `toctree` directive.
2+
3+
4+
5+
You can adapt this file completely to your liking, but it should at least
6+
contain the root `toctree` directive.
47

58
Welcome to Atlassian Python API's documentation!
69
================================================

examples/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22

33
Here you can find different examples of how to use a library.
44

5-
You can use it as a reference for your apps or just use it "as is" for your needs.
5+
You can use it as a reference for your apps or just use it "as is" for your needs.
66
Feel free to send us new examples if you think, that we miss something important.
77
There are simple rules each example should follow:
8+
89
* **Do not store** any credentials in VCS
910
* Do not use any additional dependencies except the python build-in's
10-
* Follow the PEP-8 and format your code.
11+
* Follow the PEP-8 and format your code.
1112

1213
JetBrains PyCharm built-in formatter is perfectly fine and used a lot at this library

examples/insight/search_objects_via_iql.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from atlassian import Insight
22

3-
43
# Press the green button in the gutter to run the script.
54
if __name__ == "__main__":
65
ins = Insight(url="http://localhost:8080/", username="jira-administrator", password="admin")

examples/jira/jira_clean_inactive_or_removed_from_jira_users.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
jira = Jira(url="JIRA_URL", username="ATLASSIAN_USER", password="ATLASSIAN_PASSWORD")
1111

12-
1312
# Ger all role ids from Jira
1413
role_ids = []
1514
roles = jira.get_all_global_project_roles()

examples/jira/jira_issue_update_epic_link.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
Update the Epic Link for issue(s)
33
"""
44

5-
65
from atlassian.jira import Jira
76

87
# the Issues which we want to place to a certain EPIC

examples/jira/jira_issues_get_all_projects.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,10 @@
33
Getting Project Issue(s) example
44
"""
55

6-
76
from atlassian import Jira
87

9-
108
jira = Jira(url="https://jirasite.co", username="ocean", password="seariver")
119

12-
1310
if __name__ == "__main__":
1411
# default will return 50 issues in ascending order
1512
project_issues_default_50 = jira.get_all_project_issues(project="APA")

examples/jira/jira_oauth2.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
authorization_base_url = "https://auth.atlassian.com/authorize"
1717
token_url = "https://auth.atlassian.com/oauth/token"
1818

19-
2019
# Create OAuth 2.0 Integration in Atlassian developer console
2120
# https://developer.atlassian.com/console/myapps/
2221
# Click Authorization → “Configure” under OAuth 2.0 and

0 commit comments

Comments
 (0)