diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index 45f11ff..e51179e 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -2,7 +2,7 @@ name: pre-commit on: push: - branches: + branches: - master pull_request: @@ -16,7 +16,7 @@ jobs: steps: - name: Checkout Repo uses: actions/checkout@v4 - + - name: Set up Python uses: actions/setup-python@v5 with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 871904d..3b95e58 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,7 @@ name: Test on: push: - branches: + branches: - master pull_request: @@ -12,7 +12,7 @@ on: jobs: test: runs-on: "ubuntu-latest" - + steps: - name: Checkout repo uses: actions/checkout@v4 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e586ae3..39023a9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,10 +2,11 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 hooks: - - id: check-toml + - id: check-toml + - id: trailing-whitespace - repo: https://github.com/psf/black - rev: 23.1.0 + rev: 24.8.0 hooks: - id: black language_version: python3.10 diff --git a/pure_interface/_sub_interface.py b/pure_interface/_sub_interface.py index 18a91f6..cd5d274 100644 --- a/pure_interface/_sub_interface.py +++ b/pure_interface/_sub_interface.py @@ -4,6 +4,7 @@ The decorator checks that the sub-interface is infact a subset and registers the larger interface as an implementation of the sub-interface. """ + from inspect import signature from typing import Callable, Type, TypeVar diff --git a/pure_interface/interface.py b/pure_interface/interface.py index f5f7c91..a21b188 100644 --- a/pure_interface/interface.py +++ b/pure_interface/interface.py @@ -1,6 +1,7 @@ """ pure_interface enforces empty functions and properties on interfaces and provides adaption and structural type checking. """ + from __future__ import absolute_import, division, print_function import abc