Skip to content
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

Merged
merged 15 commits into from
Dec 11, 2024

Conversation

timwoj
Copy link
Member

@timwoj timwoj commented Dec 4, 2024

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.

@timwoj timwoj requested a review from bbannier December 4, 2024 19:25
Copy link
Member

@bbannier bbannier left a 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.

pyproject.toml Outdated Show resolved Hide resolved
pyproject.toml Outdated Show resolved Hide resolved
ZeekControl/web.py Show resolved Hide resolved
ZeekControl/web.py Show resolved Hide resolved
ZeekControl/web.py Show resolved Hide resolved
bin/stats-to-csv Outdated Show resolved Hide resolved
testing/Scripts/diff-to-bytes-output Outdated Show resolved Hide resolved
.pre-commit-config.yaml Show resolved Hide resolved
.pre-commit-config.yaml Outdated Show resolved Hide resolved
.github/workflows/codeql.yml Outdated Show resolved Hide resolved
@timwoj timwoj force-pushed the topic/timw/python-upgrade branch from 756dc28 to 32e19ce Compare December 5, 2024 20:11
This disables the format string finding (UP031) temporarily. It is
handled in a separate commit because it's so many changes.
@timwoj timwoj force-pushed the topic/timw/python-upgrade branch 2 times, most recently from 352dd72 to 4cfc1d6 Compare December 10, 2024 16:42
@timwoj timwoj force-pushed the topic/timw/python-upgrade branch from 4cfc1d6 to a1ac7af Compare December 10, 2024 16:45
@timwoj timwoj merged commit 67ae699 into master Dec 11, 2024
1 check passed
@timwoj timwoj deleted the topic/timw/python-upgrade branch December 11, 2024 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants