commit c7ea2ed70bbdaefd724a0ab2e3d307d985f01afd parent 5b13bdfb961041a5b34a8856ea5650ebb250aa9b Author: Damian Myrda <damian@prime8.dev> Date: Mon, 29 Apr 2024 21:38:27 -0500 Added pre-commit Diffstat:
| A | .pre-commit-config.yaml | | | 14 | ++++++++++++++ |
| M | database.py | | | 1 | + |
2 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/.pre-commit-config.yaml 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 @@ -77,6 +77,7 @@ class SQLDatabase: class ProjectDatabase: def __init__(self): + # self.database = JSONDatabase() self.database = SQLDatabase() def read(self):