Skip to content

Commit

Permalink
First part of flake8 plugins fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Secrus committed Jul 26, 2022
1 parent 33cbb14 commit ac2ef55
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 16 deletions.
2 changes: 1 addition & 1 deletion crashtest/contracts/base_solution.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from __future__ import annotations

from .solution import Solution
from crashtest.contracts.solution import Solution


class BaseSolution(Solution):
Expand Down
6 changes: 5 additions & 1 deletion crashtest/contracts/has_solutions_for_exception.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
from __future__ import annotations

from .solution import Solution
from typing import TYPE_CHECKING


if TYPE_CHECKING:
from crashtest.contracts.solution import Solution


class HasSolutionsForException:
Expand Down
6 changes: 5 additions & 1 deletion crashtest/contracts/provides_solution.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
from __future__ import annotations

from .solution import Solution
from typing import TYPE_CHECKING


if TYPE_CHECKING:
from crashtest.contracts.solution import Solution


class ProvidesSolution:
Expand Down
6 changes: 5 additions & 1 deletion crashtest/contracts/solution_provider_repository.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
from __future__ import annotations

from .solution import Solution
from typing import TYPE_CHECKING


if TYPE_CHECKING:
from crashtest.contracts.solution import Solution


class SolutionProviderRepository:
Expand Down
8 changes: 6 additions & 2 deletions crashtest/frame.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
from __future__ import annotations

import inspect
from typing import TYPE_CHECKING

from types import FrameType

if TYPE_CHECKING:
import inspect

from types import FrameType


class Frame:
Expand Down
6 changes: 5 additions & 1 deletion crashtest/frame_collection.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
from __future__ import annotations

from .frame import Frame
from typing import TYPE_CHECKING


if TYPE_CHECKING:
from crashtest.frame import Frame


class FrameCollection(list):
Expand Down
4 changes: 2 additions & 2 deletions crashtest/inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import inspect

from .frame import Frame
from .frame_collection import FrameCollection
from crashtest.frame import Frame
from crashtest.frame_collection import FrameCollection


class Inspector:
Expand Down
5 changes: 2 additions & 3 deletions tests/test_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
import inspect

from crashtest.frame import Frame

from .helpers import nested_exception
from .helpers import simple_exception
from tests.helpers import nested_exception
from tests.helpers import simple_exception


def test_frame():
Expand Down
7 changes: 3 additions & 4 deletions tests/test_inspector.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
from __future__ import annotations

from crashtest.inspector import Inspector

from .helpers import nested_exception
from .helpers import recursive_exception
from .helpers import simple_exception
from tests.helpers import nested_exception
from tests.helpers import recursive_exception
from tests.helpers import simple_exception


def test_inspector_with_simple_exception():
Expand Down

0 comments on commit ac2ef55

Please sign in to comment.