1
0
mirror of synced 2024-12-11 22:46:00 +01:00
jubeatools/utils/format_code.sh
2022-03-10 01:56:32 +01:00

15 lines
290 B
Bash
Executable File

# find all files with unused imports, then hand them off to autoimport
flake8 \
--isolated \
--select=F401 \
--format='%(path)s' \
--exclude=__init__.py \
| sort \
| uniq \
| xargs autoimport
# auto-sort imports in all files
isort jubeatools
# format code
black jubeatools