How to combine multiple sections of pyproject.toml
with the current file tree abstraction
#621
abravalheri
started this conversation in
Dev Discussions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In a recent discussion, we have identified a potential challenge for v5 and the adoption of
pyproject.toml
as a file where multiple configurations are added to.Currently we can afford multiple feature/extensions because each of them maps to a different file when relevant. So we can have
.coveragerc
or.isort.cfg
with independent behaviours (pyscaffold.operations.skip_on_update
,pyscaffold.operations.no_overwrite
,pyscaffold.operations.delete
,pyscaffold.operations.add_permissions
, etc...)When all the configurations converge to a single file, that would be complicated.
We can extend the existing tree abstraction to the
pyproject.toml
file. This way each section of the file would be an independent leaf. There are 2 ways of implementing this (at least):pyscaffold.operations
work.pyscaffold.operations
(although it looks more elegant in principle). We might want to check if there is any library that abstracts the file system for an in memory file system that we could use.Beta Was this translation helpful? Give feedback.
All reactions