-
Notifications
You must be signed in to change notification settings - Fork 5
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
ENH: Migrate to pyproject.toml and ruff #69
Comments
Ok for pyproject.toml. For the other points, could you provide a rationale for the changes? |
@Zeitsperre Thoughts? |
As for the src layout, it's main purpose is to avoid importing the xncml python module from the sources instead of using the one installed in the python environment. |
Thanks, good for me, but I'd like to have Trevor's thoughts on this. |
Good idea @bzah We currently use a mixed implementation of ruff with a few other tools ( For the layout proposition, I'm all for it. It's just a safer way of organizing the code. Not much is needed when it comes to configuration. If you're interested in starting from an existing template, I've put a fair amount of work into our cookiecutter (https://github.com/Ouranosinc/cookiecutter-pypackage). This includes |
Thanks @Zeitsperre. Thanks for the cookiecutter. One thing I see that diverges from it in xncml is the use of setuptools_scm. It generates a version for the package using git (the latest tag is used I think) and may require setuptool. |
As far as I can tell, there is no There's a modified implementation of this cookiecutter to support |
It would be nice if xncml would use:
Optionally, it would also be nice (IMHO) to use a src layout structure instead of a flat layout: https://packaging.python.org/en/latest/discussions/src-layout-vs-flat-layout/
[x] I'm willing to make a PR to make these changes.
The text was updated successfully, but these errors were encountered: