Skip to content

Commit 79805fe

Browse files
chore: add basedpyright extraPaths to pyproject.toml (konflux-ci#844)
Configure source roots for the type checker so that IDE import resolution matches the PYTHONPATH set in the Dockerfile. Signed-off-by: Filip Nikolovski <fnikolov@redhat.com>
1 parent e79166c commit 79805fe

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ dev = [
4848
"pytest-cov>=6.0",
4949
]
5050

51+
[tool.basedpyright]
52+
extraPaths = [
53+
"integration-tests/lib",
54+
"scripts/python/helpers",
55+
"scripts/python/tasks/internal",
56+
"scripts/python/tasks/managed",
57+
"utils",
58+
"pubtools-pulp-wrapper",
59+
"publish-to-cgw-wrapper",
60+
]
61+
5162
[tool.coverage.run]
5263
omit = [
5364
"**/test_*",

0 commit comments

Comments
 (0)