]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
⏪️ Revert removing scripts, only remove `coverage.sh` (#15772)
authorSebastián Ramírez <tiangolo@gmail.com>
Tue, 16 Jun 2026 08:34:25 +0000 (10:34 +0200)
committerGitHub <noreply@github.com>
Tue, 16 Jun 2026 08:34:25 +0000 (08:34 +0000)
scripts/format.sh [new file with mode: 0755]
scripts/lint.sh [new file with mode: 0755]
scripts/test-cov-html.sh [new file with mode: 0755]

diff --git a/scripts/format.sh b/scripts/format.sh
new file mode 100755 (executable)
index 0000000..bf70f42
--- /dev/null
@@ -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 (executable)
index 0000000..a7d1f2f
--- /dev/null
@@ -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 (executable)
index 0000000..3397a57
--- /dev/null
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+
+set -e
+set -x
+
+bash scripts/test-cov.sh --cov-report=term-missing --cov-report=html ${@}