Skip to content

Commit

Permalink
refactor!: remove cloud code from monopoly
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-awd committed Oct 30, 2023
1 parent 1d180ae commit 4acf52b
Show file tree
Hide file tree
Showing 30 changed files with 15 additions and 1,525 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ FROM base AS test
RUN apt-get update \
&& apt-get -y install build-essential libpoppler-cpp-dev pkg-config

RUN --mount=type=cache,target=$POETRY_CACHE_DIR poetry install --no-root
RUN --mount=type=cache,target=$POETRY_CACHE_DIR poetry install --without dev --no-root

COPY --from=brew /home/linuxbrew/.linuxbrew/Cellar /home/linuxbrew/.linuxbrew/Cellar
COPY --from=brew /home/linuxbrew/.linuxbrew/bin/john /home/linuxbrew/.linuxbrew/bin/john
Expand Down
20 changes: 0 additions & 20 deletions Makefile

This file was deleted.

1 change: 0 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ services:
container_name: monopoly
image: monopoly
volumes:
- $HOME/.config/gcloud:/root/.config/gcloud
- ./monopoly:/monopoly
env_file:
.env
6 changes: 0 additions & 6 deletions monopoly/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,10 @@


class Settings(BaseSettings):
gmail_address: str = ""
project_id: str = ""
pubsub_topic: str = ""
secret_id: str = ""
gcs_bucket: str = ""
ocbc_pdf_password: str = ""
citibank_pdf_password: str = ""
standard_chartered_pdf_password: str = ""
hsbc_pdf_password_prefix: str = ""
trusted_user_emails: list = []

model_config = SettingsConfigDict(env_file=".env", extra="allow")

Expand Down
5 changes: 0 additions & 5 deletions monopoly/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ class StatementFields(AutoEnum):
AMOUNT = auto()


class EmailSubjectRegex(StrEnum):
OCBC = r"OCBC Bank: Your Credit Card e-Statement"
HSBC = r"Your.HSBC.*eStatement"


class SharedPatterns(StrEnum):
AMOUNT = r"(?P<amount>[\d.,]+)$"
DESCRIPTION = r"(?P<description>.*?)\s+"
Expand Down
1 change: 0 additions & 1 deletion monopoly/gmail/__init__.py

This file was deleted.

50 changes: 0 additions & 50 deletions monopoly/gmail/credentials.py

This file was deleted.

10 changes: 0 additions & 10 deletions monopoly/gmail/exceptions.py

This file was deleted.

193 changes: 0 additions & 193 deletions monopoly/gmail/gmail.py

This file was deleted.

37 changes: 0 additions & 37 deletions monopoly/gmail/pubsub.py

This file was deleted.

Loading

0 comments on commit 4acf52b

Please sign in to comment.