Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 12, 2024
1 parent 1346fbf commit 07ea978
Show file tree
Hide file tree
Showing 22 changed files with 23 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sheetwork/core/adapters/base/connection.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
"""ABC to define what an concrete Connection object should look like."""

import abc


class BaseCredentials(abc.ABC):
"""Base class to define basic API contract for a Credentials class and its methods."""

@abc.abstractmethod
def parse_and_validate_credentials(self):
...
def parse_and_validate_credentials(self): ...


class BaseConnection(abc.ABC): # noqa D101
Expand Down
1 change: 1 addition & 0 deletions sheetwork/core/adapters/base/impl.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Abstract definition of what a basic SQL adaptor should look like to satisfy the rest of the contracts."""

import abc
from typing import Any, Dict, Optional, Tuple

Expand Down
1 change: 1 addition & 0 deletions sheetwork/core/adapters/factory.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Database Adaper factory."""

import importlib
from typing import Type

Expand Down
1 change: 1 addition & 0 deletions sheetwork/core/adapters/postgres/impl.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Concrete database implementations for Postgres Connector."""

from typing import Any, Optional, Tuple

import pandas
Expand Down
1 change: 1 addition & 0 deletions sheetwork/core/adapters/snowflake/connection.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Concrete Snowflake Database Connection classes."""

from typing import Dict

from pydantic import BaseModel, ValidationError, validator
Expand Down
1 change: 1 addition & 0 deletions sheetwork/core/adapters/snowflake/impl.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module containing all Database Specific classes."""

import tempfile
from typing import Any, Optional, Tuple

Expand Down
1 change: 1 addition & 0 deletions sheetwork/core/cleaner.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Cleaning module. Holds SheetCleaner which holds df kinds of cleanings."""

import re
from typing import List, Union

Expand Down
1 change: 1 addition & 0 deletions sheetwork/core/clients/google.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Houses classes and methods to help interacting with Google Spreasheet API. Uses `gspread` mainly."""

from pathlib import Path
from typing import Any, List, Tuple

Expand Down
1 change: 1 addition & 0 deletions sheetwork/core/clients/system.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""System related interaction methods."""

import sys
from pathlib import Path

Expand Down
1 change: 1 addition & 0 deletions sheetwork/core/config/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Configuration class module. Loads project-wide params and all that fun stuff."""

from pathlib import Path
from typing import Any, Dict, List, Sequence, Union

Expand Down
1 change: 1 addition & 0 deletions sheetwork/core/config/profile.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Houses Profile class which parses information from profiles.yml such as db type, creds etc."""

from pathlib import Path
from typing import Dict

Expand Down
1 change: 1 addition & 0 deletions sheetwork/core/config/project.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Houses Project parsing class from sheetwork_project.yml."""

import time
from pathlib import Path
from typing import Dict, Union
Expand Down
1 change: 1 addition & 0 deletions sheetwork/core/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Contains all Sheetwork exceptions. Truely exceptional!"""

from colorama import Fore


Expand Down
1 change: 1 addition & 0 deletions sheetwork/core/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
This class which will instanciate CLI args default and/or
consume CLI arguments.
"""

import sys
from argparse import ArgumentParser
from typing import List
Expand Down
1 change: 1 addition & 0 deletions sheetwork/core/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Main module for sheetwork. Sets up Arguments to parse and task handling. That's it!"""

import argparse
import sys
from typing import List, Union
Expand Down
1 change: 1 addition & 0 deletions sheetwork/core/sheetwork.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Sheetwork main orchestration module containing."""

import sys
from typing import List, Optional, Tuple, Union

Expand Down
1 change: 1 addition & 0 deletions sheetwork/core/task/init.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""House of the sheetwork init task that helps users set up their projects. It's by far the cutest part of the code."""

import time
from pathlib import Path

Expand Down
1 change: 1 addition & 0 deletions sheetwork/core/ui/printer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Sets up some easy colour shortcuts to make sure we can easily colour logs and prints."""

import time

from sheetwork.core.ui.colours import COLOURS
Expand Down
1 change: 1 addition & 0 deletions sheetwork/core/ui/traceback_manager.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Holds some fun stuff to allow for quantity of traceback printed to stout. Nothing too magical."""

import pretty_errors

from sheetwork.core.flags import FlagParser
Expand Down
1 change: 1 addition & 0 deletions sheetwork/core/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Bunch of things needed by a bunch of other things which kinda don't have a better place to go."""

import collections
import warnings
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions sheetwork/core/yaml/yaml_helpers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Helpers for yml stuff."""

from pathlib import Path
from typing import Any, Dict

Expand Down
1 change: 1 addition & 0 deletions sheetwork/core/yaml/yaml_schema.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Holds cerberus validation schemals for each yml parsed by any of the sheetwork system."""

config_schema = {
"sheets": {
"required": True,
Expand Down

0 comments on commit 07ea978

Please sign in to comment.