Skip to content

Commit 900caeb

Browse files
chore: auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 5a8a7ac commit 900caeb

4 files changed

Lines changed: 4 additions & 8 deletions

File tree

src/vagrant/__init__.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
# local
2626
from . import compat
2727

28-
2928
# python package version dumped by setuptools-scm
3029
try:
3130
from ._version import version as __version__
@@ -348,9 +347,7 @@ def up(
348347
provision_arg = (
349348
None
350349
if provision is None
351-
else "--provision"
352-
if provision
353-
else "--no-provision"
350+
else "--provision" if provision else "--no-provision"
354351
)
355352

356353
args = [
@@ -409,9 +406,7 @@ def reload(
409406
provision_arg = (
410407
None
411408
if provision is None
412-
else "--provision"
413-
if provision
414-
else "--no-provision"
409+
else "--provision" if provision else "--no-provision"
415410
)
416411

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

src/vagrant/compat.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import locale
1010
import sys
1111

12-
1312
PY2 = sys.version_info[0] == 2
1413

1514

src/vagrant/test.py

Lines changed: 1 addition & 0 deletions
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

Lines changed: 1 addition & 0 deletions
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)