Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable using a project-local hatch config.toml file without setting HATCH_CONFIG #1463

Open
johnpyp opened this issue May 3, 2024 · 1 comment

Comments

@johnpyp
Copy link

johnpyp commented May 3, 2024

Hi, love the project!

The one thing that's been bothering me so far is that I can't customize the things in config.toml locally to a project, unless I set the environment override of HATCH_CONFIG manually / with some other tool.

For example, I'd like to add:

[dirs.env]
virtual = ".my-venv-path"

to a few specific projects, but not have to require my coworkers to set this themselves in their global hatch config, nor do I want to change the default for all of their projects. I'd also like to set other things like the cache dir, shell, etc. - locally.

This pattern is pretty common with other package managers / runners, like npm's .npmrc, which can be used globally and project-local.


Alternatively, rather than introducing the config.toml to the project alongside the other two main config files, a section in pyproject.toml or hatch.toml that is explicitly for overriding hatch behavior would work great too.

@johnpyp johnpyp changed the title Enable using a *project-local* hatch config.toml file without setting HATCH_CONFIG Enable using a project-local hatch config.toml file without setting HATCH_CONFIG May 3, 2024
@ofek
Copy link
Sponsor Collaborator

ofek commented May 4, 2024

Sure, I can do this! Thanks for the extra context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants