-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
cliRelated to the command-line interfaceRelated to the command-line interfacewishNot on the current roadmap; maybe in the futureNot on the current roadmap; maybe in the future
Description
Summary
Summary
Improve the developer experience of ruff --watch by adding the ability to:
-
Ignore specific directories or files
-
Debounce file change events to reduce redundant action on rapid save operations or bulk changes
-
Ignore Directories or Files
Problem:
Currently, it seems thatruff --watch
triggers on all file changes. Again, it seems to be me that--exclude
does not apply linting rules, but--watch
still triggers.
- Unnecessary linter runs
- Jankiness/Flashing
- Excessive CPU usage
Proposed Solution:
Introduce a CLI flag (and/or config option in pyproject.toml) to ignore specific directories or glob patterns. Example:
ruff --watch --ignore-dirs node_modules,.venv,build,dist```
pyproject.toml:
``toml
[tool.ruff.watch]
ignore = ["node_modules", ".venv", "build", "dist"]
- Debounce File Events
similar to the above, to reduce overwork on fast file changes.
Version
No response
Metadata
Metadata
Assignees
Labels
cliRelated to the command-line interfaceRelated to the command-line interfacewishNot on the current roadmap; maybe in the futureNot on the current roadmap; maybe in the future