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

Add a strict version of fromEnvironment import strategy #655

Open
jder opened this issue Dec 18, 2024 · 1 comment
Open

Add a strict version of fromEnvironment import strategy #655

jder opened this issue Dec 18, 2024 · 1 comment
Labels
configuration Related to settings and configuration enhancement New feature or request

Comments

@jder
Copy link

jder commented Dec 18, 2024

Is it possible to add a strict version of "fromEnvironment" which does not fall back to the built-in version of ruff if the one from the environment is not found?

I was in a situation today where hitting save (with format-on-save turned on) misformatted my code because I was in the middle of erasing my virtualenv and rebuilding it, and ruff helpfully fell back to the bundled version (which had different behavior than the one from the environment). I would much prefer it fails to format the code and I can re-run the formatting once my venv is back into a reasonable place.

Thanks!

@MichaReiser MichaReiser added the enhancement New feature or request label Dec 20, 2024
@MichaReiser
Copy link
Member

Thanks. This does sound very unfortunate. I'm open to adding a third option

@dhruvmanila dhruvmanila added the configuration Related to settings and configuration label Feb 12, 2025
@dhruvmanila dhruvmanila changed the title Strict version of "fromEnvironment"? Add a strict version of fromEnvironment import strategy Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
configuration Related to settings and configuration enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants