Repository navigation
Update top-level config files - #4958
jbrockmendel wants to merge 5 commits into
Conversation
| @@ -1,3 +1,36 @@ | |||
| [tool:pytest] | |||
| addopts = --doctest-modules | |||
There was a problem hiding this comment.
You need to drop this. You won't get doctests to pass in finite time.
There was a problem hiding this comment.
Will do. As mentioned, this was just for curiosity sake.
|
@jbrockmendel you can try things locally and try on specific modules or folders first instead of wasting our ci resources. I tried running doctest (on my computer) several years ago, and it is useless because almost all our docstrings are written in a way that will not test. |
@josef-pkt I look forward to getting back in this habit just as soon as CI turnaround time comes without a mile of being the binding constraint on the workflow. |
You should do this now, when we have so many PRs incoming, when PR action is quite, then it is not as relevant, but testing locally is just "proper behavior" for contributors, developers and maintainers. |
|
One reason to avoid experiments in PRs is that it blocks master builds. When merging it is usually a good idea to make sure master is green before merging the next patch so that if a changeset breaks master it can be quickly fixed or abandoned. Personal Travis is a good place to run Experiments. Plus you get email notifications of failure/success/error on personal. |
|
For me the main advantage of running module or function specific unit tests is the turnaround time during refactoring. The test runs take at most a few seconds, and it can catch incomplete refactoring mistakes very quickly. (plus it's easy to switch to using pdb) |
Point taken, especially seeing as how I'm making a push for Best Practices elsewhere. But for the love of Cthulthu, can we implement a system so that trivial PRs don't fall through the cracks for weeks and years at a time? |
|
@josef-pkt are all either green or green-as-it-gets and no-brainers. Going through another unnecessary rebase cycle would waste CI resources, so maybe its worth taking the 30 seconds apiece to verify they do exactly what the titles suggest and merge them. Or was that complaint disingenuous? |
Codecov Report
@@ Coverage Diff @@
## master #4958 +/- ##
=======================================
Coverage 81.34% 81.34%
=======================================
Files 581 581
Lines 90053 90053
Branches 10087 10087
=======================================
Hits 73253 73253
Misses 14506 14506
Partials 2294 2294Continue to review full report at Codecov.
|
For kicks I also enabled doctests, am curious how they do.
Closes #4955
Closes #4931
Closes #4677