migrate makefile from flake8 and autopep8 to ruff

This commit is contained in:
DavidVadnais 2025-03-22 15:28:43 -10:00
parent f5c679f6df
commit f1f3cad2f2

View File

@ -63,15 +63,13 @@ test:
#: format - Run the PEP8 formatter. #: format - Run the PEP8 formatter.
.PHONY: format .PHONY: format
format: format:
autopep8 --exit-code --global-config .flake8 helpdesk ruff format 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 ruff check helpdesk
isort --line-length=120 --src helpdesk . --check
#: documentation - Build documentation (Sphinx, README, ...). #: documentation - Build documentation (Sphinx, README, ...).