Skip to content

Commit e9a9ad4

Browse files
committed
Update black 19.10b0 -> 20.08b1
1 parent f116264 commit e9a9ad4

File tree

3 files changed

+29
-8
lines changed

3 files changed

+29
-8
lines changed

libvcs/git.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def chomp_protocol(url):
394394
395395
Parameters
396396
----------
397-
url : str
397+
url : str
398398
PIP-style url
399399
400400
Returns
@@ -447,7 +447,7 @@ def status(self):
447447
--------
448448
449449
>>> git_repo.status()
450-
{
450+
{
451451
"branch_oid": 'de6185fde0806e5c7754ca05676325a1ea4d6348',
452452
"branch_head": 'fix-current-remote-name',
453453
"branch_upstream": 'origin/fix-current-remote-name',

libvcs/util.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def run(
123123
check_returncode=True,
124124
callback=None,
125125
):
126-
""" Run 'cmd' in a shell and return the combined contents of stdout and
126+
"""Run 'cmd' in a shell and return the combined contents of stdout and
127127
stderr (Blocking). Throws an exception if the command exits non-zero.
128128
129129
Parameters
@@ -159,7 +159,11 @@ def progress_cb(output, timestamp):
159159
run(['git', 'pull'], callback=progrses_cb)
160160
"""
161161
proc = subprocess.Popen(
162-
cmd, shell=shell, stderr=subprocess.PIPE, stdout=subprocess.PIPE, cwd=cwd,
162+
cmd,
163+
shell=shell,
164+
stderr=subprocess.PIPE,
165+
stdout=subprocess.PIPE,
166+
cwd=cwd,
163167
)
164168

165169
all_output = []

tests/test_git.py

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,12 @@ def test_get_remotes(git_repo):
181181
assert 'origin' in git_repo.remotes()
182182

183183

184-
@pytest.mark.parametrize('repo_name,new_repo_url', [['myrepo', 'file:///apples'],])
184+
@pytest.mark.parametrize(
185+
'repo_name,new_repo_url',
186+
[
187+
['myrepo', 'file:///apples'],
188+
],
189+
)
185190
def test_set_remote(git_repo, repo_name, new_repo_url):
186191
mynewremote = git_repo.set_remote(name=repo_name, url='file:///')
187192

@@ -321,19 +326,31 @@ def test_extract_status_b(fixture, expected_result):
321326
[
322327
[
323328
'# branch.ab +1 -83',
324-
{"branch_ab": '+1 -83', "branch_ahead": '1', "branch_behind": '83',},
329+
{
330+
"branch_ab": '+1 -83',
331+
"branch_ahead": '1',
332+
"branch_behind": '83',
333+
},
325334
],
326335
[
327336
"""
328337
# branch.ab +0 -0
329338
""",
330-
{"branch_ab": '+0 -0', "branch_ahead": '0', "branch_behind": '0',},
339+
{
340+
"branch_ab": '+0 -0',
341+
"branch_ahead": '0',
342+
"branch_behind": '0',
343+
},
331344
],
332345
[
333346
"""
334347
# branch.ab +1 -83
335348
""",
336-
{"branch_ab": '+1 -83', "branch_ahead": '1', "branch_behind": '83',},
349+
{
350+
"branch_ab": '+1 -83',
351+
"branch_ahead": '1',
352+
"branch_behind": '83',
353+
},
337354
],
338355
[
339356
"""

0 commit comments

Comments
 (0)