Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit b5f2569

Browse files
author
bswck
committed
Address type-checking problems
1 parent db92b80 commit b5f2569

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

autorefine/tooling/auditors/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
from ._coverage import CoverageAuditor
2-
from ._doctest import DoctestAuditor
2+
from ._doctest import DocTestAuditor
33
from ._just import JustAuditor
44
from ._nox import NoxAuditor
55
from ._pytest import PytestAuditor
66
from ._tox import ToxAuditor
77

88
__all__ = (
99
"CoverageAuditor",
10-
"DoctestAuditor",
10+
"DocTestAuditor",
1111
"JustAuditor",
1212
"NoxAuditor",
1313
"PytestAuditor",
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from autorefine.tools import Auditor
22

33

4-
class DocTest(Auditor):
4+
class DocTestAuditor(Auditor):
55
pass
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
from ._git import GitVCS
1+
from ._smokeshow import SmokeshowDeployer
22

3-
__all__ = ("GitVCS",)
3+
__all__ = ("SmokeshowDeployer",)
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
from ._diff_cover import DiffCoverReporter
1+
from ._diff_cover import DiffCoverFixViewer
22

3-
__all__ = ("DiffCoverReporter",)
3+
__all__ = ("DiffCoverFixViewer",)

autorefine/tooling/fixers/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
from ._fixit import FixitFixer
1+
from ._fixit import FixItFixer
22
from ._monkeytype import MonkeyTypeFixer
33
from ._ruff import RuffFixer
44

55
__all__ = (
6-
"FixitFixer",
6+
"FixItFixer",
77
"MonkeyTypeFixer",
88
"RuffFixer",
99
)

autorefine/tools.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Check:
1919
fixer: Fixer
2020

2121
def fix(self) -> None:
22-
self.fixer.fix(self)
22+
pass
2323

2424
def dump(self) -> dict[str, str | int]:
2525
return {
@@ -34,17 +34,17 @@ def dump(self) -> dict[str, str | int]:
3434
class CommandLineTool(metaclass=ABCMeta):
3535
"""Base class for all tools."""
3636

37-
def __init__(self, path: Path[str]) -> None:
37+
def __init__(self, path: Path) -> None:
3838
self.path = path
3939

40-
@abstractmethod
4140
@property
41+
@abstractmethod
4242
def version(self) -> str:
4343
raise NotImplementedError
4444

4545

4646
class Checker(CommandLineTool, metaclass=ABCMeta):
47-
def get_checks(self, path: Path[str]) -> list[Check]:
47+
def get_checks(self, path: Path) -> list[Check]:
4848
raise NotImplementedError
4949

5050

@@ -66,7 +66,7 @@ def get_revision(self) -> str:
6666

6767

6868
class FixViewer(CommandLineTool, metaclass=ABCMeta):
69-
def view_diff(self, path: Path[str], fix: Check) -> None:
69+
def view_diff(self, path: Path, fix: Check) -> None:
7070
raise NotImplementedError
7171

7272

0 commit comments

Comments
 (0)