From 42a6c8c90ef0c009bae073435bfd1bd644ff82da Mon Sep 17 00:00:00 2001 From: Damian Myrda Date: Mon, 29 Apr 2024 21:38:27 -0500 Subject: [PATCH] Added pre-commit --- .pre-commit-config.yaml | 14 ++++++++++++++ database.py | 1 + 2 files changed, 15 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..0e6c689 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,14 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.5.0 + hooks: + - id: end-of-file-fixer + - id: trailing-whitespace + - repo: https://github.com/psf/black + rev: 24.4.2 + hooks: + - id: black + - repo: https://github.com/pre-commit/mirrors-prettier + rev: v3.1.0 + hooks: + - id: prettier diff --git a/database.py b/database.py index c0c1437..18fdd21 100644 --- a/database.py +++ b/database.py @@ -77,6 +77,7 @@ class SQLDatabase: class ProjectDatabase: def __init__(self): + # self.database = JSONDatabase() self.database = SQLDatabase() def read(self): -- 2.43.4