Skip to content

Commit

Permalink
👹 Feed the hobgoblins (delint).
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 1, 2024
1 parent 71e2317 commit 4ea5f36
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 19 deletions.
3 changes: 1 addition & 2 deletions jaraco/vcs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"""

from .base import Repo
from .subprocess import Mercurial, Git

from .subprocess import Git, Mercurial

__all__ = ['Repo', 'repo', 'Mercurial', 'Git']

Expand Down
5 changes: 3 additions & 2 deletions jaraco/vcs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
an interface to source code repository functionality.
"""

import itertools
import os.path
import posixpath
import itertools

from more_itertools import one

import jaraco.versioning as versioning
from jaraco.classes.ancestry import iter_subclasses
from more_itertools import one


class Repo(versioning.VersionManagement):
Expand Down
7 changes: 3 additions & 4 deletions jaraco/vcs/cmd.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import collections
import itertools
import operator
import os.path
import re
import operator
import itertools
import collections

import packaging


TaggedRevision = collections.namedtuple('TaggedRevision', 'tag revision')


Expand Down
4 changes: 1 addition & 3 deletions jaraco/vcs/library.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import sys

from . import base
from . import cmd
from . import reentry
from . import base, cmd, reentry


class Mercurial(cmd.Mercurial, base.Repo):
Expand Down
4 changes: 2 additions & 2 deletions jaraco/vcs/reentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
the current Python process.
"""

import sys
import io
import collections
import contextlib
import io
import sys

SavedIO = collections.namedtuple('SavedIO', 'stdout stderr')

Expand Down
3 changes: 1 addition & 2 deletions jaraco/vcs/subprocess.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import os
import subprocess

from . import base
from . import cmd
from . import base, cmd


class Subprocess:
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pathlib

import pytest
import jaraco.path

import jaraco.path
from jaraco import vcs


Expand Down
3 changes: 1 addition & 2 deletions tests/test_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import pytest

from jaraco import vcs
from jaraco.vcs import cmd
from jaraco.vcs import subprocess
from jaraco.vcs import cmd, subprocess


def test_subprocess_manager_invalid_when_exe_missing():
Expand Down
1 change: 1 addition & 0 deletions tests/test_managers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from unittest import mock

import pytest

from jaraco import vcs
Expand Down
2 changes: 1 addition & 1 deletion tests/test_mercurial.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
import operator
import os
import platform

import pytest
Expand Down

0 comments on commit 4ea5f36

Please sign in to comment.