-
Notifications
You must be signed in to change notification settings - Fork 44
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
Require python 3.9, plus lots of linting and formatting fixes #73
Conversation
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.
This is a huge PR 😬. I tried to review individual commits, but not all pass the pre-commit hooks individually. What I did instead was at the tip revert all non-linter changes to their version from master
, automatically apply all changes and review the delta.
The changes look fine and mostly cosmetic to me, but you also fixed a number of true bugs (noted them with Uff comments in the review). I did not test how they changed behavior, but they looked reasonable to me.
Let's definitely add a GH job running pre-commit. It would also be great to have some CI running the test suite for the things we cover, but that might be hard. As is this package cannot be installed as a Python project.
756dc28
to
32e19ce
Compare
This disables the format string finding (UP031) temporarily. It is handled in a separate commit because it's so many changes.
352dd72
to
4cfc1d6
Compare
4cfc1d6
to
a1ac7af
Compare
I added a basic pyproject.toml to this just for consistency with our other projects. I didn't add a setup.py because you will generally never install this package outside of a Zeek installation.