Open andreoliwa opened 3 years ago
I'm running into this "problem" right now. I have several projects which I want to add mypy configuration to, and the projects have different values for mypy_path
.
One solution would of course streamline the projects to have src
directories for mypy to look in. But having some way of defining variables would be very neat.
Problem
Enforce configuration values that depend on variables. E.g.: a string that is used in every project, only changing the project name.
Possible solution
{{ env.MY_VAR }}
{{ file["pyproject.toml"].tool.poetry.name }}
or{{ pyproject_toml.tool.poetry.name }}
setup.cfg
, e.g.{{ setup_cfg.isort.skip }}