h2non / jsonpath-ng

Finally, a JSONPath implementation for Python that aims to be standard compliant. That's all. Enjoy!
Apache License 2.0
564 stars 85 forks source link

Update tests #145

Closed kurtmckee closed 8 months ago

kurtmckee commented 8 months ago

This PR overhauls the test suite in several ways:

All files have been run through black, isort, and pyupgrade.

kurtmckee commented 8 months ago

@michaelmior It appears that the current merge strategy is breaking all of my commit signatures and causing them to be marked as "Unverified":

Commits in every PR

image

Commits after merging

image

Is it possible to merge PRs without rewriting the git history? I don't know if this is being enforced by a repo setting like "Require a linear git history" or some such, but wanted to ask.

michaelmior commented 8 months ago

I prefer keeping linear history where possible. If you want your commits to show as verified, the easiest way to have both these happen is to make sure that your PR is rebased on the latest master branch.

kurtmckee commented 8 months ago

make sure that your PR is rebased on the latest master branch

143 was based on then-current master and all of the commits were still rewritten. It appears that the current merge strategy -- at least as it's currently implemented -- consistently but unnecessarily rewrites commits.

Would you consider forgoing your preference for a linear history?

michaelmior commented 8 months ago

@kurtmckee Personally I find the benefit of a linear history greater than the benefit of verified commits.

kurtmckee commented 8 months ago

Okay.