From: Damian Myrda Date: Tue, 30 Apr 2024 02:38:27 +0000 (-0500) Subject: Added pre-commit X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=42a6c8c90ef0c009bae073435bfd1bd644ff82da;p=csc.git Added pre-commit --- 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):