diff --git a/scripts/format.sh b/scripts/format.sh new file mode 100755 index 0000000000..bf70f42e5f --- /dev/null +++ b/scripts/format.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +set -x + +ruff check fastapi tests docs_src scripts --fix +ruff format fastapi tests docs_src scripts diff --git a/scripts/lint.sh b/scripts/lint.sh new file mode 100755 index 0000000000..a7d1f2f665 --- /dev/null +++ b/scripts/lint.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +set -e +set -x + +mypy fastapi +ty check +ruff check fastapi tests docs_src scripts +ruff format fastapi tests --check diff --git a/scripts/test-cov-html.sh b/scripts/test-cov-html.sh new file mode 100755 index 0000000000..3397a57609 --- /dev/null +++ b/scripts/test-cov-html.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +set -e +set -x + +bash scripts/test-cov.sh --cov-report=term-missing --cov-report=html ${@}