Skip to content

Commit

Permalink
Bump black version.
Browse files Browse the repository at this point in the history
  • Loading branch information
jendrikseipp committed Sep 14, 2020
1 parent c415a62 commit b5661e8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion downward/scripts/translator-parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def parse_translator_timestamps(content, props):
def parse_statistics(content, props):
"""Parse all translator output of the following form:
Translator xxx: yyy
Translator xxx: yyy
"""
pattern = re.compile(r"^Translator (.+): (.+?)(?: KB|)$")
for line in content.splitlines():
Expand Down
3 changes: 1 addition & 2 deletions examples/vertex-cover/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ def find_two_approximation(edges):
def find_greedy_cover(edges):
def find_vertex_greedily(remaining_edges):
num_incident_edges = collections.defaultdict(int)
for edge in remaining_edges:
u, v, = edge
for u, v in remaining_edges:
num_incident_edges[u] += 1
num_incident_edges[v] += 1
return max(num_incident_edges, key=lambda v: num_incident_edges[v])
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ commands =
[testenv:style]
skipsdist = true
deps =
black==19.10b0
black==20.8b0
flake8
flake8-2020
flake8-bugbear
Expand All @@ -64,7 +64,7 @@ commands =
[testenv:fix-style]
skipsdist = true
deps =
black==19.10b0
black==20.8b0
isort>=5.0,<5.1
pyupgrade
commands =
Expand Down

0 comments on commit b5661e8

Please sign in to comment.