1
0
mirror of synced 2024-12-11 22:46:00 +01:00
jubeatools/utils/format_code.sh
2021-05-04 13:39:40 +02:00

15 lines
282 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 -y
# format code
black jubeatools