-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Migrate to python bootstrap conventions #128
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. |
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.
- 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 (
NotFound
exc) - We could also then rename
getLogger
that 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 |
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.
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 |
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.
👍
Rationale
Fix #118
Fix #120
Changes
--runslow --runinstalled
just like beforeafa
lang 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
#noqa
and#pyright: ignore
statements (with a task list, one file per task even if we might sometimes fix multiple files at once)