style: use black as formatter

This commit is contained in:
NateScarlet
2021-10-10 02:16:28 +08:00
parent c43da50efb
commit 1878a5b4ef
3 changed files with 104 additions and 69 deletions

9
Makefile Normal file
View File

@@ -0,0 +1,9 @@
.PHONY: default lint format
default: format
lint:
py -3.8 -m black -t py38 --check --diff .
format:
py -3.8 -m black -t py38 .