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

ignore formatting for certain paths #202

Closed
delfick opened this issue Jan 15, 2022 · 3 comments
Closed

ignore formatting for certain paths #202

delfick opened this issue Jan 15, 2022 · 3 comments

Comments

@delfick
Copy link

delfick commented Jan 15, 2022

Hello,

Is it possible to make it so that a formatter doesn't run under certain paths?

For example, if I'm editing a file in a python virtualenv site-packages folder I'd rather it didn't call black on that file.

I can use root-markers to look for a file in my project so that I can prevent this for say a python installation, but this doesn't work for any virtualenvs in my project.

@mattn
Copy link
Owner

mattn commented Jan 15, 2022

Are you setting up formatter with saving?

@delfick
Copy link
Author

delfick commented Jan 15, 2022 via email

@mattn
Copy link
Owner

mattn commented Apr 20, 2022

Closed by #214

@mattn mattn closed this as completed Apr 20, 2022
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