Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #128 +/- ##
==========================================
Coverage 100.00% 100.00%
==========================================
Files 32 32
Lines 1319 1332 +13
Branches 0 225 +225
==========================================
+ Hits 1319 1332 +13 ☔ View full report in Codecov by Sentry. |
4399f96 to
e1c87af
Compare
FYI this was not done before because of unsupported types syntax in Cython file. I know things has improved on their side lately so this must be re-assessed. But you're right to add it here for now |
That's a mistake. scraperlib is a library and this renders using it very inflexible. See https://github.com/openzim/_python-bootstrap/wiki/pyproject.toml#dependencies |
🤦🏻 OMG That been said, it remembers me that I forgot to specify one thing: the required version in setuptools was open-endeed (i.e. |
rgaudin
left a comment
There was a problem hiding this comment.
- is there a way to run tests skipping the slow ones?
- RUF012 should be changed to declare the ClassVar. We don't need mutable dict for presets but it's more readable than using unmutable types.
- FBT002 I think it's a really useful rule… but applying it is a breaking change. Can we open a ticket and switch for next major?
- Next for N818 (
NotFoundexc) - We could also then rename
getLoggerthat was chosen to mimiclogging's but we dont really care about that. - no need for runinstalled as we're always installed using our bootstrap
- as discussed, we should aim for 100% coverage, as it was
… are always installed
…nsure proper coverage
|
As discussed live:
I prefer the
N802 and N803 might be considered as well, except the ones of _libkiwix and maybe the ones of
Removed
I will fix (it is done indeed now) |
I finally changed my mind and used ClassVar which is semantically more correct I think Test coverage is now 100%. I had to disable the |
rgaudin
left a comment
There was a problem hiding this comment.
Thank you ;
I see you've added a bunch of tests. Was that all mandated by the new conditional behavior of coverage?
Not all of them, in same case one test was sufficient to provide 100% coverage but it made no sense to not write more tests while working on it (e.g. for |
Rationale
Fix #118
Fix #120
Changes
--runslow --runinstalledjust like beforeafalang has no part2t value in ISO (see https://www.loc.gov/standards/iso639-2/ascii_8bits.html) ; it is not clear if it is a recent change or an original mistake in "iso-639" datasetsImportant notes
#noqaand#pyright: ignorestatements (with a task list, one file per task even if we might sometimes fix multiple files at once)