Skip to content

Commit ed6d3aa

Browse files
chore: auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 92e84a0 commit ed6d3aa

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/vagrant/__init__.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,7 @@ def up(
348348
provision_arg = (
349349
None
350350
if provision is None
351-
else "--provision"
352-
if provision
353-
else "--no-provision"
351+
else "--provision" if provision else "--no-provision"
354352
)
355353

356354
args = [
@@ -409,9 +407,7 @@ def reload(
409407
provision_arg = (
410408
None
411409
if provision is None
412-
else "--provision"
413-
if provision
414-
else "--no-provision"
410+
else "--provision" if provision else "--no-provision"
415411
)
416412

417413
args = ["reload", vm_name, provision_arg, prov_with_arg, providers_arg]

src/vagrant/test.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
It also removes some of the boilerplate involved in writing tests that leverage
55
vagrant boxes.
66
"""
7+
78
from typing import Dict, List, Optional
89
from unittest import TestCase
910
from vagrant import Vagrant, stderr_cm

tests/test_vagrant_test_case.py

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
44
There are a handful of classes to try to provide multiple different varying samples of possible setups
55
"""
6+
67
import os
78
from vagrant import Vagrant
89
from vagrant.test import VagrantTestCase

0 commit comments

Comments
 (0)