-
Notifications
You must be signed in to change notification settings - Fork 18
chore: Add sp-repo-review recommendations for pytest #203
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
chore: Add sp-repo-review recommendations for pytest #203
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #203 +/- ##
=======================================
Coverage 72.51% 72.51%
=======================================
Files 4 4
Lines 131 131
=======================================
Hits 95 95
Misses 36 36 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
32d6bbc to
ad143eb
Compare
ad143eb to
429e274
Compare
pyproject.toml
Outdated
| addopts = "-v -ra" | ||
| addopts = ["-v", "-ra", "--strict-config", "--strict-markers"] | ||
| norecursedirs = ["src"] | ||
| minversion = "9" |
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.
If we require 9, we could go ahead and use the new nicer configuration style ([tool.pytest], strict=true, etc).
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.
@henryiii that sounds great! I don't know that off the top of my head, so I'll look it up and revise this.
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.
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.
You can also see here an example (https://github.com/scipp-atlas/pyhs3/blob/main/pyproject.toml#L86-L101)
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.
* Update minimum pytest version to v9. * Use modern pytest configuration in [tool.pytest] table. - c.f. https://learn.scientific-python.org/development/guides/pytest/ Co-authored-by: Henry Schreiner <[email protected]>
429e274 to
faec265
Compare
Requires PR #201 to go in first.