Add pre-commits, add pyproject.toml#11
Conversation
0cbfa47 to
7fd17bc
Compare
361fad9 to
cc05dde
Compare
|
Putting this one on hold until I can get a new version of pysubnettree released, since I need some unreleased fixes from it for the btests to pass on Github. They work fine locally since I installed pysubnettree directly from a repo clone, but the version on pypi fails. |
|
I was looking at this and about to suggest a bunch of changes, but figured just suggesting concrete code would be simpler, so I added a bunch of commits after cc05dde. Some of the patches are fixups and I added extra info to the commit message. Please feel free to pick up what you want. |
Those all look good. I pushed one more commit that fixes the build step. Calling the build module directly without arguments is enough to test that the packaging works. |
Instead of just having a minimal `setup.py` migrate to `build` for a simpler setup.
6921b68 to
06f633a
Compare
This adds the typical set of pre-commits for Zeek Python projects and fixes all of the findings from ruff-check and ruff-format. It includes the
typospre-commit, but it didn't find anything with the bare configuration so I didn't add a typos.toml.It also adds a pyproject.toml with the usual configuration and fleshes out the setup.py to set the version number correctly when installing via
pip.