From 76e08f4ace1b90c80b3da73426b5100fdc459fa0 Mon Sep 17 00:00:00 2001 From: Logan Rosen Date: Thu, 30 Apr 2026 22:36:28 -0400 Subject: [PATCH] Add opower to mypy pre-commit additional_dependencies The mypy pre-commit hook runs in an isolated environment that only has the packages listed in additional_dependencies. Without opower itself, mypy fails with import-not-found errors when checking test files that import from the opower package. This only manifested during git commit (which passes only changed files to mypy), not during CI (which uses --all-files, allowing mypy to resolve imports from the src/ tree). --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e3a2aab..4b6d436 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -43,6 +43,7 @@ repos: - pyotp - pytest-mypy - python-dotenv + - opower - repo: https://github.com/adrienverge/yamllint rev: v1.38.0 hooks: