-
Notifications
You must be signed in to change notification settings - Fork 3
Configure coverage in pyproject.toml #779
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -122,3 +122,7 @@ packages = [ | |||||||||||||||
| [tool.hatch.version] | ||||||||||||||||
| source = "vcs" | ||||||||||||||||
| path = "executorlib/_version.py" | ||||||||||||||||
|
|
||||||||||||||||
| [tool.coverage.run] | ||||||||||||||||
| omit = ["executorlib/_version.py", "tests/*"] | ||||||||||||||||
| command_line = "-m unittest discover tests" | ||||||||||||||||
|
Comment on lines
+126
to
+128
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Constrain coverage to project source to avoid noise from dependencies. Without a [tool.coverage.run]
+source = ["executorlib"]
omit = ["executorlib/_version.py", "tests/*"]
command_line = "-m unittest discover tests"📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛠️ Refactor suggestion
Broaden test omit pattern to cover nested test packages.
The pattern
tests/*only excludes files directly undertests/. It won’t omit nested paths liketests/benchmark/test_results.py. Use a recursive pattern if supported, or add additional globs.Apply one of the following:
Option A (coverage >= 7 supports recursive globs):
Option B (portable without recursive globs):
🤖 Prompt for AI Agents