grantjenks / blue

The slightly less uncompromising Python code formatter.
https://blue.readthedocs.io/
Other
393 stars 21 forks source link

Exclude not workin pyproject.toml #104

Open ronaldoapsilva opened 5 months ago

ronaldoapsilva commented 5 months ago

Hello,

I attempted to use the exclude option in pyproject.toml to prevent formatting on my file locators.py, but encountered an issue where it began formatting files within my virtual environment packages. Consequently, I included my virtual environment's directory name, .venv, to exclude it from formatting. However, it seems there's a typo in the configuration:

[tool.blue]
exclude = '''
/locators.py
/.venv/*
'''