Closed clelange closed 1 month ago
This needs some more fixes in other places, I had only addressed the errors that showed up first in the tests.
@clelange : thanks for addressing #272. I noticed the problem yesterday, but I didn't get around to opening a PR. Although it's better programming practice, it's a breaking change to reassign some arguments from positional to keyword-only. Do you anticipate this will break user code? It might be better in the long run to reassign some arguments and I leave the decision to you, but a simple fix would be to add # pylint: disable=too-many-positional-arguments
to the offending functions.
Hi @GraemeWatt -- while making some of the changes, I was also thinking about whether this breaks user code or not. So far, it looks like it's only smaller things that would be easy to fix. Forcing more named function parameters would actually make the code better readable and usable, so I'm somewhat in favour of implementing the fixes rather than silencing the linter.
It really looks like the changes are minor and good to have even though it might break for some edge cases where people don't like named arguments.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 90.42%. Comparing base (
79091d0
) to head (ab46b9d
). Report is 1 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Fixes #272
📚 Documentation preview 📚: https://hepdata-lib--273.org.readthedocs.build/en/273/