hundreds-father-404
09/02/2020, 6:33 PMsetup-py
.
I don’t think it makes sense to have a rules
folder anymore, like backend/python/rules
. Plugins are basically only rules now - it’s a bit redundant
Instead, I’m thinking something like this?
python/
/dependency_inference/
/lint
/black
/isort
...
/ typecheck
/mypy
/util_rules
/pex_environment.py
/pex.py
...
/goals (or goal_implementations/)
/macros (e.g. `pipenv_requirements.py`)
/subsystems
/target_types.py
hundreds-father-404
09/02/2020, 6:33 PMhappy-kitchen-89482
09/02/2020, 7:26 PMsubsystems
even. Might make more sense to locate subsystems alongside the code that uses them.hundreds-father-404
09/02/2020, 7:58 PMsubsystems
, but two issues:
a) Causes some import cycles, e.g. PyTest
being used in target_types.py
so it can’t be defined in pytest_runner.py
. Having goals/pytest.py
seems worse than subsystems/pytest.py
.
b) Some subsystems are very generic, like subprocess-environment
, and there’s no clear place where it should live
I think this is fine as is. Will put up the PR as soon as https://github.com/pantsbuild/pants/pull/10721 lands