Skip to content

Commit

Permalink
chore: auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jul 1, 2024
1 parent e67ef3f commit 77c92fa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/vagrant/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,7 @@ def up(
provision_arg = (
None
if provision is None
else "--provision"
if provision
else "--no-provision"
else "--provision" if provision else "--no-provision"
)

args = [
Expand Down Expand Up @@ -409,9 +407,7 @@ def reload(
provision_arg = (
None
if provision is None
else "--provision"
if provision
else "--no-provision"
else "--provision" if provision else "--no-provision"
)

args = ["reload", vm_name, provision_arg, prov_with_arg, providers_arg]
Expand Down
1 change: 1 addition & 0 deletions src/vagrant/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
It also removes some of the boilerplate involved in writing tests that leverage
vagrant boxes.
"""

from typing import Dict, List, Optional
from unittest import TestCase
from vagrant import Vagrant, stderr_cm
Expand Down
1 change: 1 addition & 0 deletions tests/test_vagrant_test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
There are a handful of classes to try to provide multiple different varying samples of possible setups
"""

import os
from vagrant import Vagrant
from vagrant.test import VagrantTestCase
Expand Down

0 comments on commit 77c92fa

Please sign in to comment.