Skip to content

Commit

Permalink
fix mypy config for pre-commit (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
giovanni-guidini authored Jun 4, 2024
1 parent 0e1095f commit 4fe84f0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
30 changes: 15 additions & 15 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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' --
- 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' --
4 changes: 2 additions & 2 deletions services/bots/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 4fe84f0

Please sign in to comment.