🚨 Add pre-commit

Format code
Add bin/run
This commit is contained in:
Nikolai R Kristiansen committed 2022-01-16 22:49:21 +01:00
1 parent 9d3afadbff
commit dcd8edaaa6
28 files changed
+264 -51

No files matched your search

+5 -1
View File
@@ -1,2 +1,6 @@
#!/bin/bash
black main bbssite
SRC_DIR="main bbssite"
black $SRC_DIR
isort $SRC_DIR
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/bash
set -eu
python manage.py export_schema
cd frontend && npm run generate
+5 -1
View File
@@ -1,2 +1,6 @@
#!/bin/bash
black --check main bbssite
SRC_DIR="main bbssite"
black --check $SRC_DIR
isort --diff $SRC_DIR
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
python manage.py runserver
+1
View File
@@ -1,2 +1,3 @@
#!/bin/bash
pytest -v