mirror of https://github.com/tiangolo/fastapi.git
🔨 Update internal scripts and remove unused ones (#11499)
This commit is contained in:
parent
13ce009e9a
commit
f49da74200
|
|
@ -1,8 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -x
|
||||
|
||||
# Check README.md is up to date
|
||||
python ./scripts/docs.py verify-docs
|
||||
python ./scripts/docs.py build-all
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/sh -e
|
||||
|
||||
if [ -d 'dist' ] ; then
|
||||
rm -r dist
|
||||
fi
|
||||
if [ -d 'site' ] ; then
|
||||
rm -r site
|
||||
fi
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
mkdocs serve --dev-addr 0.0.0.0:8008
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
#!/bin/sh -e
|
||||
set -x
|
||||
|
||||
ruff fastapi tests docs_src scripts --fix
|
||||
ruff check fastapi tests docs_src scripts --fix
|
||||
ruff format fastapi tests docs_src scripts
|
||||
|
|
|
|||
|
|
@ -4,5 +4,5 @@ set -e
|
|||
set -x
|
||||
|
||||
mypy fastapi
|
||||
ruff fastapi tests docs_src scripts
|
||||
ruff check fastapi tests docs_src scripts
|
||||
ruff format fastapi tests --check
|
||||
|
|
|
|||
|
|
@ -1,14 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
set -x
|
||||
set -e
|
||||
# Install pip
|
||||
cd /tmp
|
||||
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
|
||||
python3.6 get-pip.py --user
|
||||
cd -
|
||||
# Install Flit to be able to install all
|
||||
python3.6 -m pip install --user flit
|
||||
# Install with Flit
|
||||
python3.6 -m flit install --user --extras doc
|
||||
# Finally, run mkdocs
|
||||
python3.6 -m mkdocs build
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
flit publish
|
||||
Loading…
Reference in New Issue