Skip to content

Commit 09a23cf

Browse files
committed
feat: add pdl-lint tool that can be configured via pyproject.toml
Signed-off-by: Abi Ullattil <[email protected]>
1 parent 9d9cbda commit 09a23cf

File tree

3 files changed

+1349
-0
lines changed

3 files changed

+1349
-0
lines changed

pyproject.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ Issues = "https://github.com/IBM/prompt-declaration-language/issues"
6969

7070
[project.scripts]
7171
pdl = "pdl.pdl:main"
72+
pdl-lint = "pdl.pdl_linter:run_linter"
7273

7374
[tool.setuptools_scm]
7475
version_file = "src/pdl/_version.py"
@@ -81,3 +82,15 @@ pdl = ["pdl-schema.json"]
8182

8283
[tool.pyright]
8384
include = ["src", "tests", "examples", "docs"]
85+
86+
[tool.pdl-lint]
87+
ignore = [
88+
"tests/data/line/hello.pdl",
89+
"tests/data/line/hello1.pdl",
90+
"tests/data/line/hello10.pdl",
91+
"tests/data/line/hello11.pdl",
92+
"tests/data/line/hello31.pdl",
93+
"tests/data/line/hello4.pdl",
94+
"tests/data/line/hello7.pdl",
95+
"tests/data/line/hello8.pdl",
96+
]

0 commit comments

Comments
 (0)