Skip to content
Snippets Groups Projects

Front matter linter

Merged Remi PLANEL requested to merge front-matter-linter into main
1 file
+ 3
0
Compare changes
  • Side-by-side
  • Inline
import typer
import sys
from typing_extensions import Annotated
from typing import Optional, List
from pathlib import Path
@@ -71,5 +72,7 @@ def lint(
console.print(
f"[red]{err['msg']} : {err['type']} {' -> '.join([str(l) for l in err['loc']])}"
)
# raise
sys.exit(1)
else:
console.print("[green] Everything is alright")
Loading