-
Notifications
You must be signed in to change notification settings - Fork 219
Closed
astral-sh/ruff
#22076Labels
cliRelated to the command-line interfaceRelated to the command-line interface
Milestone
Description
ty checks every path specified on the CLI even if they match an exclude pattern. This is
because explicitly passed paths are considered explicit than an exclusion pattern.
This behavior generally matches expectation but it's problematic when integrating ty with other tools that aren't aware of the exclusions. For example, pre-commit (also see #269), passes all changed files to ty, including paths excluded in ty.
We should add an option similar to Ruff's --force-exclude that gives exclude patterns higher precedence over the paths passed on the CLI, enforcing that the exclusion rules are respected even for files passed on the CLI
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
cliRelated to the command-line interfaceRelated to the command-line interface