diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 357840d44..58340dd0d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,16 +1,16 @@ repos: -- repo: local - hooks: - - id: lint - name: lint - description: "Lint and sort" - entry: make lint - pass_filenames: false - require_serial: true - language: system -- repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v1.10.0' - hooks: - - id: mypy - verbose: true - entry: bash -c 'mypy "$@" || true' -- \ No newline at end of file + - repo: local + hooks: + - id: lint + name: lint + description: "Lint and sort" + entry: make lint + pass_filenames: false + require_serial: true + language: system + - repo: https://github.com/pre-commit/mirrors-mypy + rev: "v1.10.0" + hooks: + - id: mypy + verbose: true + entry: bash -c 'mypy "$@" --explicit-package-bases || true' -- diff --git a/services/bots/types.py b/services/bots/types.py index 6b3ea6de1..1d3e7dca8 100644 --- a/services/bots/types.py +++ b/services/bots/types.py @@ -8,9 +8,9 @@ # A Token and its Owner # If a Token doesn't belong to Owner (i.e. it's a GitHubAppInstallation Token), second value is None -type TokenWithOwner = Tuple[Token, Optional[Owner]] +TokenWithOwner = Tuple[Token, Optional[Owner]] -type TokenTypeMapping = Dict[TokenType, Token] +TokenTypeMapping = Dict[TokenType, Token] class AdapterAuthInformation(TypedDict):