Describe the bug
Plugin does not honor exclude=... in pyproject.toml for formatting
To Reproduce
Steps to reproduce the behavior:
I have this section in my pyproject.toml (no overwrites in lint or format section)
[tool.ruff]
exclude = [
...
"node_modules",
"site-packages",
"venv",
"**/migrations/**",
"__init__.py",
]
however this is still formatting files inside my migrations folder, checking the ruff logging console, i see the command is executed with - and therefore the excludes does no more match (running the same command without - in the cli works as expected)
Executing: <path-to-my-ruff-exe>/ruff.exe format --force-exclude --quiet --config <path-to-my-project>/pyproject.toml -
Expected behavior
Honor excludes
Environments (please complete the following information):
- IDE: PyCharm 2024.3.5 (Professional Edition) Build #PY-243.26053.29, built on March 17, 2025
- OS: win11
- Ruff Version 0.11.4
- Plugin version 0.0.47
Describe the bug
Plugin does not honor
exclude=...inpyproject.tomlfor formattingTo Reproduce
Steps to reproduce the behavior:
I have this section in my pyproject.toml (no overwrites in lint or format section)
however this is still formatting files inside my migrations folder, checking the ruff logging console, i see the command is executed with
-and therefore the excludes does no more match (running the same command without - in the cli works as expected)Expected behavior
Honor excludes
Environments (please complete the following information):