Skip to content

Commit

Permalink
lint all files
Browse files Browse the repository at this point in the history
To match MYPY
  • Loading branch information
drernie committed Aug 24, 2024
1 parent 37bdad1 commit d290630
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 16 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ watch:

# Lint code using flake8
lint:
poetry run black $(PROJ)
poetry run black .
poetry run flake8
poetry run mypy $(PROJ)
poetry run mypy .

# Clean up generated files
clean:
Expand Down
9 changes: 6 additions & 3 deletions example/sample_data_source.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Dict, List, Mapping
from typing import Any, Dict, List, Mapping, Iterable

import pyarrow as pa
from athena_federation.athena_data_source import AthenaDataSource
Expand All @@ -12,11 +12,14 @@ class SampleDataSource(AthenaDataSource):
"""

@staticmethod
def TransposeData(columns: List[str], data: List[List[Any]]) -> Dict[str, List[Any]]:
def TransposeData(
columns: List[str], data: List[List[Any]]
) -> Dict[str, List[Any]]:
"""
Transpose the data so that it is a dictionary of columns.
"""
return dict(zip(columns, list(zip(*data))))
zipped: Iterable[list[Any]] = zip(*data) # type: ignore
return dict(zip(columns, list(zipped)))

def __init__(self):
super().__init__()
Expand Down
11 changes: 0 additions & 11 deletions tests/test_import.py

This file was deleted.

0 comments on commit d290630

Please sign in to comment.