]> prime8.dev >> repos - csc.git/commitdiff
Added pre-commit
authorDamian Myrda <monkey.damianek@gmail.com>
Tue, 30 Apr 2024 02:38:27 +0000 (21:38 -0500)
committerDamian Myrda <monkey.damianek@gmail.com>
Tue, 30 Apr 2024 02:38:27 +0000 (21:38 -0500)
.pre-commit-config.yaml [new file with mode: 0644]
database.py

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
new file mode 100644 (file)
index 0000000..0e6c689
--- /dev/null
@@ -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
index c0c1437086e487561fa816c902cfeba3d43f7edd..18fdd213c70f8013cf387740880ee378c9f6d0f1 100644 (file)
@@ -77,6 +77,7 @@ class SQLDatabase:
 
 class ProjectDatabase:
     def __init__(self):
+        # self.database = JSONDatabase()
         self.database = SQLDatabase()
 
     def read(self):