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

Modernize project #41

Merged
merged 14 commits into from
Jul 23, 2024
Merged

Modernize project #41

merged 14 commits into from
Jul 23, 2024

Conversation

bbannier
Copy link
Member

@bbannier bbannier commented Jul 8, 2024

This PR modernizes the project and moves linting to ruff like which we already use in many other Zeek Python projects.

@bbannier bbannier self-assigned this Jul 8, 2024
We had dedicated code which replicated setuptools' "development
mode"[^1] in that we could import from a not installed package. This not
only complicated the code for no good reason, but also tripped up
linting tools.

This patch removes these workarounds.

[^1]: https://setuptools.pypa.io/en/latest/userguide/development_mode.html
We would previously included code to deal with optional dependencies in
an ad hoc way in the code. Since we are a proper package which already
has requirements this is not really needded. Instead simply require
these dependencies with this patch.
@bbannier bbannier force-pushed the topic/bbannier/modernize-project branch from 5a971e7 to ebc299a Compare July 9, 2024 07:29
@bbannier bbannier force-pushed the topic/bbannier/modernize-project branch from ebc299a to e430537 Compare July 9, 2024 07:31
@bbannier bbannier marked this pull request as ready for review July 9, 2024 07:33
@bbannier bbannier merged commit d8851d0 into master Jul 23, 2024
6 checks passed
@bbannier bbannier deleted the topic/bbannier/modernize-project branch July 23, 2024 08:14
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