Skip to content

Commit 0ce823e

Browse files
author
Dmytro Lapshyn
committed
Revert unnecessary indentation /
formatting changes
1 parent 67f01b7 commit 0ce823e

File tree

6 files changed

+104
-36
lines changed

6 files changed

+104
-36
lines changed

jira_agile_metrics/calculators/cycletime_test.py

Lines changed: 92 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -46,28 +46,29 @@ def jira(custom_fields):
4646
customfield_100=None,
4747
changes=[
4848
Change(
49-
"2018-01-02 10:01:01",
50-
[("Flagged", None, "Impediment", "customfield_100")]
49+
"2018-01-02 10:01:01", [("Flagged", None, "Impediment", "customfield_100")]
5150
),
5251
Change(
53-
"2018-01-03 01:00:00",
54-
[("Flagged", "Impediment", "", "customfield_100")]
52+
"2018-01-03 01:00:00", [("Flagged", "Impediment", "", "customfield_100")]
5553
), # blocked 1 day in the backlog (doesn't count towards blocked days)
5654
Change(
5755
"2018-01-03 01:01:01",
58-
[("status", "Backlog", "Next",)]
56+
[
57+
(
58+
"status",
59+
"Backlog",
60+
"Next",
61+
)
62+
]
5963
),
6064
Change(
61-
"2018-01-04 10:01:01",
62-
[("Flagged", "", "Impediment", "customfield_100")]
65+
"2018-01-04 10:01:01", [("Flagged", "", "Impediment", "customfield_100")]
6366
),
6467
Change(
65-
"2018-01-05 08:01:01",
66-
[("Flagged", "Impediment", "", "customfield_100")]
68+
"2018-01-05 08:01:01", [("Flagged", "Impediment", "", "customfield_100")]
6769
), # was blocked 1 day
6870
Change(
69-
"2018-01-08 10:01:01",
70-
[("Flagged", "", "Impediment", "customfield_100")]
71+
"2018-01-08 10:01:01", [("Flagged", "", "Impediment", "customfield_100")]
7172
), # stays blocked until today
7273
],
7374
),
@@ -86,23 +87,46 @@ def jira(custom_fields):
8687
changes=[
8788
Change(
8889
"2018-01-03 01:01:01",
89-
[("status", "Backlog", "Next",)]
90+
[
91+
(
92+
"status",
93+
"Backlog",
94+
"Next",
95+
)
96+
]
9097
),
9198
Change(
9299
"2018-01-04 01:01:01",
93-
[("status", "Next", "Build",)]
100+
[
101+
(
102+
"status",
103+
"Next",
104+
"Build",
105+
)
106+
]
94107
),
95108
Change(
96-
"2018-01-04 10:01:01",
97-
[("Flagged", None, "Impediment", "customfield_100")]
109+
"2018-01-04 10:01:01", [("Flagged", None, "Impediment", "customfield_100")]
98110
), # should clear two days later when issue resolved
99111
Change(
100112
"2018-01-05 01:01:01",
101-
[("status", "Build", "QA",)]
113+
[
114+
(
115+
"status",
116+
"Build",
117+
"QA",
118+
)
119+
]
102120
),
103121
Change(
104122
"2018-01-06 01:01:01",
105-
[("status", "QA", "Done",)]
123+
[
124+
(
125+
"status",
126+
"QA",
127+
"Done",
128+
)
129+
]
106130
),
107131
],
108132
),
@@ -121,15 +145,33 @@ def jira(custom_fields):
121145
changes=[
122146
Change(
123147
"2018-01-04 01:01:01",
124-
[("status", "Backlog", "Next",)]
148+
[
149+
(
150+
"status",
151+
"Backlog",
152+
"Next",
153+
)
154+
]
125155
),
126156
Change(
127157
"2018-01-05 01:01:01",
128-
[("status", "Next", "Build",)]
158+
[
159+
(
160+
"status",
161+
"Next",
162+
"Build",
163+
)
164+
]
129165
),
130166
Change(
131167
"2018-01-06 01:01:01",
132-
[("status", "Build", "Next",)]
168+
[
169+
(
170+
"status",
171+
"Build",
172+
"Next",
173+
)
174+
]
133175
),
134176
Change(
135177
"2018-01-07 01:01:01",
@@ -165,11 +207,24 @@ def jira_with_skipped_columns(custom_fields):
165207
changes=[
166208
Change(
167209
"2018-01-02 01:05:01",
168-
[("status", "Backlog", "Next",)]
210+
[
211+
(
212+
"status",
213+
"Backlog",
214+
"Next",
215+
)
216+
]
169217
),
170218
Change(
171219
"2018-01-04 01:01:01",
172-
[("status", "Next", "Done",), ("resolution", None, "done")]
220+
[
221+
(
222+
"status",
223+
"Next",
224+
"Done",
225+
),
226+
("resolution", None, "done")
227+
]
173228
), # skipping columns Build and Test
174229
],
175230
),
@@ -188,11 +243,24 @@ def jira_with_skipped_columns(custom_fields):
188243
changes=[
189244
Change(
190245
"2018-01-02 01:05:01",
191-
[("status", "Backlog", "Build",)]
246+
[
247+
(
248+
"status",
249+
"Backlog",
250+
"Build",
251+
)
252+
]
192253
),
193254
Change(
194255
"2018-01-04 01:01:01",
195-
[("status", "Build", "Done",), ("resolution", None, "done")]
256+
[
257+
(
258+
"status",
259+
"Build",
260+
"Done",
261+
),
262+
("resolution", None, "done")
263+
]
196264
), # skipping columns Build and Test
197265
],
198266
),

jira_agile_metrics/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def config_to_options(data, cwd=None, extended=False):
304304
"progress_report_outcome_query": None,
305305
"progress_report_outcome_deadline_field": None,
306306
},
307-
}
307+
}
308308

309309
# Recursively parse an `extends` file but only if a base path is given,
310310
# otherwise we can plausible leak files in server mode.

jira_agile_metrics/config_test.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from .config import force_list, expand_key, config_to_options, ConfigError
66

7+
78
def test_force_list():
89
assert force_list(None) == [None]
910
assert force_list("foo") == ["foo"]
@@ -521,7 +522,7 @@ def test_config_to_options_extends():
521522
Cycle time data: cycletime.csv
522523
"""
523524
% fp.name,
524-
cwd=os.path.abspath(fp.name)
525+
cwd=os.path.abspath(fp.name),
525526
)
526527
finally:
527528
os.remove(fp.name)

jira_agile_metrics/conftest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ def __init__(self, fields):
3030

3131

3232
class FauxChangeItem(object):
33-
"""An item in a changelog change
34-
"""
33+
"""An item in a changelog change"""
3534
def __init__(self, field, fromString, toString, fieldId=None):
3635
self.field = field
3736
self.fieldId = fieldId if fieldId is not None else field

jira_agile_metrics/querymanager_test.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ def jira(custom_fields):
4545
"status",
4646
"Next",
4747
"Done",
48-
)
49-
]
48+
),
49+
],
5050
),
5151
Change(
5252
"2018-01-02 01:01:01",
@@ -56,7 +56,7 @@ def jira(custom_fields):
5656
"Backlog",
5757
"Next",
5858
)
59-
]
59+
],
6060
),
6161
Change(
6262
"2018-01-02 01:01:01",
@@ -67,7 +67,7 @@ def jira(custom_fields):
6767
"Team 1",
6868
"customfield_001",
6969
)
70-
]
70+
],
7171
),
7272
Change(
7373
"2018-01-04 01:01:01",
@@ -81,12 +81,12 @@ def jira(custom_fields):
8181
"status",
8282
"Done",
8383
"QA",
84-
)
85-
]
84+
),
85+
],
8686
),
8787
],
8888
)
89-
]
89+
],
9090
)
9191

9292

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tool.black]
2-
line-length = 79
2+
line-length = 179
33
include = '\.pyi?$'
44
exclude = '''
55
/(

0 commit comments

Comments
 (0)