1
0
mirror of synced 2024-12-11 06:26:00 +01:00
jubeatools/utils/format_code.sh

15 lines
290 B
Bash
Raw Normal View History

2021-05-04 13:39:40 +02:00
# 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
2022-03-10 01:47:41 +01:00
isort jubeatools
2021-05-04 13:39:40 +02:00
# format code
2021-04-29 13:14:25 +02:00
black jubeatools