Skip to content

Commit 81a1c27

Browse files
committed
feat(pyproject.toml): Add config for proper python package paths
1 parent 9bf5073 commit 81a1c27

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ fail_under = 100
4949
show_missing = true
5050
skip_covered = true
5151

52+
[tool.setuptools]
53+
include-package-data = true
54+
zip-safe = false
55+
56+
[tool.setuptools.packages]
57+
find = {}
58+
5259
[tool.ruff]
5360
line-length = 120
5461
preview = true
@@ -142,7 +149,13 @@ docstring-code-format = true
142149
[tool.ruff.lint.flake8-copyright]
143150
author = "SUSE LLC"
144151
notice-rgx = "Copyright"
145-
146152
[tool.ruff.lint.flake8-tidy-imports.banned-api]
147153
"os.system".msg = "Use `subprocess.run` or `sh` library instead."
148154
"subprocess.call".msg = "Use `subprocess.run` with `check=True`."
155+
156+
[tool.pyright]
157+
include = ["src", "tests", "*.py"]
158+
159+
[tool.pytest.ini_options]
160+
pythonpath = "src"
161+

0 commit comments

Comments
 (0)