first commit

This commit is contained in:
2024-09-17 12:11:39 +08:00
commit 42fbcc5d89
236 changed files with 27582 additions and 0 deletions

5
backend/scripts/format.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/sh -e
set -x
ruff check app scripts --fix
ruff format app scripts

8
backend/scripts/lint.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -e
set -x
mypy app
ruff check app
ruff format app --check

8
backend/scripts/test.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -e
set -x
coverage run --source=app -m pytest
coverage report --show-missing
coverage html --title "${@-coverage}"