diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6e1276a..da16304 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -36,7 +36,7 @@ repos: - tenacity - types-setuptools - repo: https://github.com/mxr/sync-typing-deps - rev: 827c0d0f5b5dda0644170665034006604f9eb10b # frozen: v0.6.0 + rev: 896a112838d434d8e607d4d636323c5914ab933f # frozen: v0.7.0 hooks: - id: sync-typing-deps - repo: https://github.com/pre-commit/mirrors-mypy @@ -63,6 +63,22 @@ repos: - id: debug-statements - id: end-of-file-fixer - id: trailing-whitespace +- repo: https://github.com/mxr/mirrors-pyright + rev: 789d36e40263da0e4d83395ed125b03a3a0e2c5f # frozen: v1.1.412 + hooks: + - id: pyright + additional_dependencies: + - aiohttp>=3 + - aiopathlib + - aiosqlite + - asyncio-for-ynab~=1.86.0 + - coverage + - fasteners + - pytest + - pytest-asyncio + - rich>=10 + - tenacity + - types-setuptools - repo: https://github.com/rhysd/actionlint rev: 914e7df21a07ef503a81201c76d2b11c789d3fca # frozen: v1.7.12 hooks: diff --git a/sqlite_export_for_ynab/_main.py b/sqlite_export_for_ynab/_main.py index 76df7a3..7add95b 100644 --- a/sqlite_export_for_ynab/_main.py +++ b/sqlite_export_for_ynab/_main.py @@ -60,7 +60,9 @@ from collections.abc import Sequence try: - from rich.progress import MofNCompleteColumn + from rich.progress import ( + MofNCompleteColumn, # pyright: ignore[reportAssignmentType] + ) # https://github.com/benleb/surepy/issues/240 except ImportError: # pragma: no cover from rich.progress import ProgressColumn