From 471aa92765d1b6760c37f38d20a6fd869d63b6f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 16 Jan 2023 14:09:00 +0100 Subject: [PATCH] sort imports with ruff --- tests/direnv_project.py | 1 - tests/procs.py | 3 +-- tests/test_gc.py | 4 ++-- tests/test_use_nix.py | 4 ++-- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/tests/direnv_project.py b/tests/direnv_project.py index 2f2fbff..784eaaa 100644 --- a/tests/direnv_project.py +++ b/tests/direnv_project.py @@ -8,7 +8,6 @@ from tempfile import TemporaryDirectory from typing import Iterator import pytest - from procs import run diff --git a/tests/procs.py b/tests/procs.py index 653c712..7f8cf5e 100644 --- a/tests/procs.py +++ b/tests/procs.py @@ -1,9 +1,8 @@ #!/usr/bin/env python3 import subprocess -from typing import List, Union, IO, Any, Optional from pathlib import Path - +from typing import IO, Any, List, Optional, Union _FILE = Union[None, int, IO[Any]] _DIR = Union[None, Path, str] diff --git a/tests/test_gc.py b/tests/test_gc.py index fefda77..2982128 100644 --- a/tests/test_gc.py +++ b/tests/test_gc.py @@ -1,11 +1,11 @@ #!/usr/bin/env python2 -import sys import subprocess +import sys import unittest -from procs import run from direnv_project import DirenvProject +from procs import run def common_test(direnv_project: DirenvProject) -> None: diff --git a/tests/test_use_nix.py b/tests/test_use_nix.py index 8edb4ff..8144a62 100644 --- a/tests/test_use_nix.py +++ b/tests/test_use_nix.py @@ -1,13 +1,13 @@ #!/usr/bin/env python2 -import sys import os import subprocess +import sys import unittest from typing import Optional -from procs import run from direnv_project import DirenvProject +from procs import run def direnv_exec(