From 89b8c202471de624c5eb59226c6e641ed600a2e8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Sep 2024 17:04:53 +0000 Subject: [PATCH] chore: auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/vagrant/__init__.py | 8 ++------ src/vagrant/test.py | 1 + tests/test_vagrant_test_case.py | 1 + 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/vagrant/__init__.py b/src/vagrant/__init__.py index ea880a4..a2746a5 100644 --- a/src/vagrant/__init__.py +++ b/src/vagrant/__init__.py @@ -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 = [ @@ -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] diff --git a/src/vagrant/test.py b/src/vagrant/test.py index 457319d..f495aff 100644 --- a/src/vagrant/test.py +++ b/src/vagrant/test.py @@ -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 diff --git a/tests/test_vagrant_test_case.py b/tests/test_vagrant_test_case.py index 43945ee..0241262 100644 --- a/tests/test_vagrant_test_case.py +++ b/tests/test_vagrant_test_case.py @@ -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