The python ecosystem and tooling especially are moving to a singular toml file for all settings. My template already uses that - should we switch this one too? https://github.com/matmair/inventree-meta-plugin/blob/main/%7B%7B%20cookiecutter.project_slug%20%7D%7D/pyproject.toml
Activity
SchrodingersGat commentedon Jan 30, 2025
Yes, this is a great idea. I'm not familiar with pyproject.toml setup - can you submit a PR for this?
matmair commentedon Jan 30, 2025
I have some prior art. Will look a bit closer at your implementation and create a PR
move setup.py to toml
matmair commentedon Feb 2, 2025
@SchrodingersGat how strongly do you feel about flake8? Ruff would be easier to configure and faster so might be a good point to change to that
SchrodingersGat commentedon Feb 2, 2025
I have no attachment to flake
wolflu05 commentedon Sep 17, 2025
May I ask, if you get anywhere with this? I have no experience with pyproject.toml and want to learn about the new tooling.
SchrodingersGat commentedon Sep 17, 2025
I think that this issue can actually be closed on out now
https://github.com/inventree/plugin-creator/blob/main/plugin_creator/template/%7B%7B%20cookiecutter.plugin_name%20%7D%7D/pyproject.toml
matmair commentedon Sep 18, 2025
Not really, we still rely on the setup.cfg
TBH I forgot about it, will try to make a PR the next week - should be pretty simple
matmair commentedon Sep 19, 2025
@wolflu05 I have now added the changes
wolflu05 commentedon Sep 20, 2025
Thanks a lot, I'll take a look in the next days and maybe try to refactor my existing plugins..