Add import sort checking and fixing to makefile

This commit is contained in:
chrisbroderick 2022-09-08 23:42:20 +01:00
parent 9e3a3abcf1
commit f134d64349

View File

@ -64,12 +64,14 @@ test:
.PHONY: format .PHONY: format
format: format:
autopep8 --exit-code --global-config .flake8 helpdesk autopep8 --exit-code --global-config .flake8 helpdesk
isort --line-length=120 --src helpdesk .
#: checkformat - checks formatting against configured format specifications for the project. #: checkformat - checks formatting against configured format specifications for the project.
.PHONY: checkformat .PHONY: checkformat
checkformat: checkformat:
flake8 helpdesk --count --show-source --statistics --exit-zero --max-complexity=20 flake8 helpdesk --count --show-source --statistics --exit-zero --max-complexity=20
isort --line-length=120 --src helpdesk . --check
#: documentation - Build documentation (Sphinx, README, ...). #: documentation - Build documentation (Sphinx, README, ...).