Commit df280510 authored by nimrod's avatar nimrod
Browse files

Address some linters warnings and a typo.

parent fb00e970
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,6 @@
# pylint: disable=import-error
from sh import vagrant

# pylint: disable=no-name-in-module
from parse import parse


@@ -19,6 +18,7 @@ for line in vagrant.box("list"):
            boxes[box["name"]][box["provider"]] = [box["version"]]
    else:
        boxes[box["name"]] = {box["provider"]: [box["version"]]}
# pylint: disable=consider-using-dict-items
for box in boxes:
    for provider in boxes[box]:
        for version in boxes[box][provider][:-1]:
+1 −1
Original line number Diff line number Diff line
@@ -5,7 +5,6 @@
# pylint: disable=import-error
from sh import vagrant

# pylint: disable=no-name-in-module
from parse import parse


@@ -19,6 +18,7 @@ for line in vagrant.box("list"):
                boxes[box["name"]].append(box["provider"])
        else:
            boxes[box["name"]] = [box["provider"]]
# pylint: disable=consider-using-dict-items
for box in boxes:
    for provider in boxes[box]:
        print("Updating box {0} provider {1}.".format(box, provider))
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
set -eu

# Update the default branch without checking out that branch (unless we're
# already on the default branch, then just run git Pull. Accepts 1 paramter,
# already on the default branch, then just run git Pull. Accepts 1 parameter,
# the remote name (defaults to origin).

default_branch="$(git default-branch)"
+1 −0
Original line number Diff line number Diff line
@@ -22,4 +22,5 @@ if __name__ == "__main__":
        method="POST",
        headers={"Content-Type": "application/json"},
    )
    # pylint: disable=consider-using-with
    urllib.request.urlopen(request)  # nosec