From: Sebastián Ramírez Date: Tue, 16 Jun 2026 08:34:25 +0000 (+0200) Subject: ⏪️ Revert removing scripts, only remove `coverage.sh` (#15772) X-Git-Tag: 0.137.2~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=818b97a68b7956e2a409203193110082046508cb;p=thirdparty%2Ffastapi%2Ffastapi.git ⏪️ Revert removing scripts, only remove `coverage.sh` (#15772) --- 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 ${@}