From 0952ac974349e459eed7f520dcc192e85ceb581a Mon Sep 17 00:00:00 2001 From: Christopher Broderick Date: Tue, 1 Apr 2025 11:08:45 +0100 Subject: [PATCH] Make "checkformat" and "format" do both linting and formatting --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index bf1d87e9..02b7a831 100644 --- a/Makefile +++ b/Makefile @@ -63,13 +63,15 @@ test: #: format - Run the PEP8 formatter. .PHONY: format format: - ruff format helpdesk + ruff check --fix # Fix linting eerrors + ruff format # fix formatting errors #: checkformat - checks formatting against configured format specifications for the project. .PHONY: checkformat checkformat: - ruff check helpdesk + ruff check # linting check + ruff format --check # format check #: documentation - Build documentation (Sphinx, README, ...).