From 818b97a68b7956e2a409203193110082046508cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Tue, 16 Jun 2026 10:34:25 +0200 Subject: [PATCH] =?UTF-8?q?=E2=8F=AA=EF=B8=8F=20Revert=20removing=20script?= =?UTF-8?q?s,=20only=20remove=20`coverage.sh`=20(#15772)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/format.sh | 5 +++++ scripts/lint.sh | 9 +++++++++ scripts/test-cov-html.sh | 6 ++++++ 3 files changed, 20 insertions(+) create mode 100755 scripts/format.sh create mode 100755 scripts/lint.sh create mode 100755 scripts/test-cov-html.sh 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 ${@}