From 8db0ec724432e188b81449a798c35039256cf6bc Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Mon, 20 Jan 2025 01:32:27 +0000 Subject: [PATCH] style: autoformat with pre-commit --- copier/main.py | 6 ++---- copier/settings.py | 1 + tests/test_unsafe.py | 3 +-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/copier/main.py b/copier/main.py index 22bfe3f80..ce7af7b3e 100644 --- a/copier/main.py +++ b/copier/main.py @@ -212,14 +212,12 @@ def __enter__(self) -> Worker: return self @overload - def __exit__(self, type: None, value: None, traceback: None) -> None: - ... + def __exit__(self, type: None, value: None, traceback: None) -> None: ... @overload def __exit__( self, type: type[BaseException], value: BaseException, traceback: TracebackType - ) -> None: - ... + ) -> None: ... def __exit__( self, diff --git a/copier/settings.py b/copier/settings.py index c25a127a4..c1ff20109 100644 --- a/copier/settings.py +++ b/copier/settings.py @@ -1,4 +1,5 @@ """User setttings models and helper functions.""" + from __future__ import annotations import os diff --git a/tests/test_unsafe.py b/tests/test_unsafe.py index c8627f958..e194a19a5 100644 --- a/tests/test_unsafe.py +++ b/tests/test_unsafe.py @@ -17,8 +17,7 @@ from .helpers import build_file_tree, git -class JinjaExtension(Extension): - ... +class JinjaExtension(Extension): ... @pytest.mark.parametrize(