Skip to content

Commit 379de97

Browse files
committed
Add sort to lint command
1 parent 903b2a6 commit 379de97

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tasks.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ def lint_ruff(context: Context) -> None:
254254
@task(name="lint")
255255
def lint_all(context: Context) -> None:
256256
"""Run all linters."""
257+
sort_metadata(context)
257258
lint_yaml(context)
258259
lint_ruff(context)
259260
lint_mypy(context)
@@ -283,6 +284,7 @@ def represent_scalar(self, tag, value, style=None):
283284

284285
@task(name="sort-metadata")
285286
def sort_metadata(contect: Context) -> None:
287+
print(f" - Sort {METADATA_FILE}")
286288
with open(METADATA_FILE, "r", encoding="utf-8") as f:
287289
metadata = yaml.safe_load(f)
288290

0 commit comments

Comments
 (0)