Visitar URL original
🔧 Add scripts · FastAIAPI/sqlmodel@d7f5b57 · GitHub
Skip to content

Commit d7f5b57

Browse files
committed
🔧 Add scripts
1 parent b36c4ad commit d7f5b57

7 files changed

Lines changed: 47 additions & 0 deletions

File tree

‎scripts/docs-live.sh‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
mkdocs serve --dev-addr 127.0.0.1:8008

‎scripts/format.sh‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh -e
2+
set -x
3+
4+
autoflake --remove-all-unused-imports --recursive --remove-unused-variables --in-place sqlmodel docs_src tests --exclude=__init__.py
5+
black sqlmodel tests docs_src
6+
isort sqlmodel tests docs_src

‎scripts/lint.sh‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
set -x
5+
6+
mypy sqlmodel
7+
flake8 sqlmodel tests docs_src
8+
black sqlmodel tests docs_src --check
9+
isort sqlmodel tests docs_src scripts --check-only

‎scripts/publish.sh‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
python -m poetry publish --build

‎scripts/test-cov-html.sh‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
set -x
5+
6+
bash ./scripts/test.sh
7+
coverage html

‎scripts/test-files.sh‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
set -x
5+
6+
# Check README.md is up to date
7+
diff --brief docs/index.md README.md

‎scripts/test.sh‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
set -x
5+
6+
coverage run -m pytest tests
7+
coverage combine
8+
coverage report --show-missing

0 commit comments

Comments
 (0)