diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 553d7ca..ebfda65 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -58,6 +58,15 @@ repos: - pytest - pandas-stubs - google-cloud-bigquery + - google-cloud-storage + - id: mypy + name: mypy (scripts) + files: ^scripts/python/idc_index_data_manager\.py$ + args: ["--explicit-package-bases"] + additional_dependencies: + - pandas-stubs + - google-cloud-bigquery + - google-cloud-storage - repo: https://github.com/codespell-project/codespell rev: "v2.4.2" diff --git a/pyproject.toml b/pyproject.toml index be1d56d..5ecf7ce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -131,6 +131,11 @@ module = "idc_index_data._version" ignore_missing_imports = true +[[tool.mypy.overrides]] +module = "scripts.python.idc_index_data_manager" +disable_error_code = ["attr-defined", "import-untyped"] + + [tool.ruff] src = ["src", "scripts"]