diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a8099c3..e92549d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -37,12 +37,17 @@ repos: # Runs mypy # Uses local environment as opposed to mypy-mirror to enable access to dependencies -- repo: local +- repo: https://github.com/pre-commit/mirrors-mypy + rev: v1.4.1 hooks: - id: mypy - name: mypy - language: system - entry: poetry run mypy + # name: mypy + # language: system + # entry: poetry run mypy # excludes checking files in docs exclude: ^(docs/) types: [python] + additional_dependencies: + - attrs + - types-python-dateutil + - types-requests diff --git a/src/nemseer/data_compilers.py b/src/nemseer/data_compilers.py index 340b335..f462898 100644 --- a/src/nemseer/data_compilers.py +++ b/src/nemseer/data_compilers.py @@ -151,17 +151,17 @@ def from_Query(cls, query: Query) -> "DataCompiler": if table in raw_tables: tables = _enumerate_tables(tables, table, enumerate_to) return cls( - run_start=query.run_start, - run_end=query.run_end, - forecasted_start=query.forecasted_start, - forecasted_end=query.forecasted_end, - forecast_type=query.forecast_type, - metadata=query.metadata, - raw_cache=query.raw_cache, - processed_cache=query.processed_cache, - processed_queries=query.processed_queries, - raw_tables=raw_tables, - compiled_data=None, + query.run_start, + query.run_end, + query.forecasted_start, + query.forecasted_end, + query.forecast_type, + query.metadata, + query.raw_cache, + query.processed_cache, + query.processed_queries, + raw_tables, + None, ) def invalid_or_corrupted_files(self) -> List[str]: