Browse Source

️ Revert removing scripts, only remove `coverage.sh` (#15772)

pull/15774/head
Sebastián Ramírez 3 days ago
committed by GitHub
parent
commit
818b97a68b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 5
      scripts/format.sh
  2. 9
      scripts/lint.sh
  3. 6
      scripts/test-cov-html.sh

5
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

9
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

6
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 ${@}
Loading…
Cancel
Save