From ddea15f393da030dd0d83fe6873afe2d5011a494 Mon Sep 17 00:00:00 2001 From: Cory Francis Myers Date: Thu, 12 Oct 2023 12:37:30 -0700 Subject: [PATCH] build(lint): run ruff first ---for the greatest coverage as soon as possible.[1] [1]: https://github.com/freedomofpress/securedrop/pull/6954#discussion_r1356053185 --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 271e6b11e2..3e392e3434 100644 --- a/Makefile +++ b/Makefile @@ -139,8 +139,10 @@ yamllint: ## Lint YAML files (does not validate syntax!). @yamllint --strict . @echo +# While the order mostly doesn't matter here, keep "check-ruff" first, since it +# gives the broadest coverage and runs (and therefore fails) fastest. .PHONY: lint -lint: ansible-config-lint app-lint check-black check-desktop-files check-strings check-ruff check-supported-locales html-lint shellcheck typelint yamllint ## Runs all lint checks +lint: check-ruff ansible-config-lint app-lint check-black check-desktop-files check-strings check-supported-locales html-lint shellcheck typelint yamllint ## Runs all lint checks .PHONY: safety safety: ## Run `safety check` to check python dependencies for vulnerabilities.