Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Wiki
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MDM Lab
Wiki
Merge requests
!122
Front matter linter
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Front matter linter
front-matter-linter
into
main
Overview
0
Commits
17
Pipelines
5
Changes
1
Merged
Remi PLANEL
requested to merge
front-matter-linter
into
main
1 year ago
Overview
0
Commits
17
Pipelines
5
Changes
1
Expand
0
0
Merge request reports
Viewing commit
5b8d611d
Prev
Next
Show latest version
1 file
+
3
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
5b8d611d
exit 1
· 5b8d611d
Remi PLANEL
authored
1 year ago
packages/df-wiki-cli/df_wiki_cli/content/main.py
+
3
−
0
Options
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