mirror of
https://github.com/rjNemo/fastapi
synced 2026-06-06 02:26:46 +00:00
🔧 Add format-imports script
This commit is contained in:
parent
6939621730
commit
a33c299fd7
1 changed files with 6 additions and 0 deletions
6
scripts/format-imports.sh
Executable file
6
scripts/format-imports.sh
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh -e
|
||||
set -x
|
||||
|
||||
# Sort imports one per line, so autoflake can remove unused imports
|
||||
isort --recursive --force-single-line-imports --thirdparty fastapi --apply fastapi tests docs/src
|
||||
sh ./scripts/format.sh
|
||||
Loading…
Reference in a new issue