chore: set up ruff as a new linter/formatter (#28158)

This commit is contained in:
Maxime Beauchemin
2024-04-24 17:19:53 -07:00
committed by GitHub
parent e8a678b75a
commit 2d63722150
579 changed files with 2508 additions and 2542 deletions

View File

@@ -25,9 +25,7 @@ if TYPE_CHECKING:
class DataLoader(ABC):
@abstractmethod
def load_table(self, table: Table) -> None:
...
def load_table(self, table: Table) -> None: ...
@abstractmethod
def remove_table(self, table_name: str) -> None:
...
def remove_table(self, table_name: str) -> None: ...

View File

@@ -46,8 +46,7 @@ class Table:
class TableMetaDataFactory(ABC):
@abstractmethod
def make(self) -> TableMetaData:
...
def make(self) -> TableMetaData: ...
def make_table(self, data: Iterable[dict[Any, Any]]) -> Table:
metadata = self.make()

View File

@@ -79,5 +79,4 @@ class PandasDataLoader(DataLoader):
class TableToDfConvertor(ABC):
@abstractmethod
def convert(self, table: Table) -> DataFrame:
...
def convert(self, table: Table) -> DataFrame: ...