Per-directory envs
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- TypeScript
- Stars
- 10
- Forks
- 2
- Avg merge
- 13h 11m
- Merged PRs (30d)
- 3
Description
We should have settings like:
{
// used by language servers
"hatch.env.default": "default", // hatch’s `default` env
// used to map files and subdirectories to envs
"hatch.env.override": {
"tests/": "hatch-test.3.13", // hatch’s default env, e.g. `hatch-test.py3.13`
"docs/": "docs", // custom env for running sphinx
"*.ipynb": "data-science", // custom env for running notebooks, with `ipykernel`
},
}
the defaults would probably be
{
"hatch.env.default": "default",
"hatch.env.override": {
"tests/": "hatch-test.*",
},
}
if we want to make globbing envs a thing, but that’s probably hard to determine: would it be the same that hatch test uses?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named. Start by locating the VS Code settings integration for Hatch and compare it with the proposed default and per-directory environment settings; done requires an agreed mapping model and defined globbing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, typescript, vscode
- Domain
- developer-experience, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100