From 0754c526d1555ff4c852c8e85ebd34120f8bae68 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Fri, 4 Oct 2024 10:47:05 +0200 Subject: [PATCH] lint --- src/tito/builder/main.py | 2 +- test/functional/release_copr_tests.py | 4 ++-- test/unit/pep8_tests.py | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/tito/builder/main.py b/src/tito/builder/main.py index 75055be1..8925bf5e 100644 --- a/src/tito/builder/main.py +++ b/src/tito/builder/main.py @@ -24,7 +24,7 @@ from pkg_resources import require try: - from packaging.version import Version as LooseVersion + from packaging.version import Version as loose_version except ImportError: from distutils.version import LooseVersion as loose_version from tempfile import mkdtemp diff --git a/test/functional/release_copr_tests.py b/test/functional/release_copr_tests.py index 3f938115..7086c806 100644 --- a/test/functional/release_copr_tests.py +++ b/test/functional/release_copr_tests.py @@ -19,11 +19,11 @@ from functional.fixture import TitoGitTestFixture +from unit import titodir + from tito.compat import * # NOQA from tito.release import CoprReleaser -from unit import titodir - PKG_NAME = "releaseme" RELEASER_CONF = """ diff --git a/test/unit/pep8_tests.py b/test/unit/pep8_tests.py index 8c5466ee..cffbc414 100644 --- a/test/unit/pep8_tests.py +++ b/test/unit/pep8_tests.py @@ -32,11 +32,12 @@ import unittest -from tito.compat import * # NOQA -from tito.compat import StringIO, redirect_stdout from unit.fixture import TitoUnitTestFixture, REPO_DIR from unit import skip_if_tox +from tito.compat import * # NOQA +from tito.compat import StringIO, redirect_stdout + class TestPep8(TitoUnitTestFixture): def setUp(self):