mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-06-20 09:37:48 +02:00
Make "checkformat" and "format" do both linting and formatting
This commit is contained in:
parent
7c12a686bc
commit
0952ac9743
6
Makefile
6
Makefile
@ -63,13 +63,15 @@ test:
|
|||||||
#: format - Run the PEP8 formatter.
|
#: format - Run the PEP8 formatter.
|
||||||
.PHONY: format
|
.PHONY: format
|
||||||
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.
|
#: checkformat - checks formatting against configured format specifications for the project.
|
||||||
.PHONY: checkformat
|
.PHONY: checkformat
|
||||||
checkformat:
|
checkformat:
|
||||||
ruff check helpdesk
|
ruff check # linting check
|
||||||
|
ruff format --check # format check
|
||||||
|
|
||||||
|
|
||||||
#: documentation - Build documentation (Sphinx, README, ...).
|
#: documentation - Build documentation (Sphinx, README, ...).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user