You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exclusions specified with --exclude or files.extend-exclude do not seem to affect files explicitly passed as arguments.
$ cat test.txt aack
$ typos --format brief./test.txt:1:0: `aack` -> `ack`
$ typos --format brief --exclude test.txt # this is ok, test.txt is excluded
$ typos --format brief --exclude test.txt test.txt # this does _not_ exclude test.txt!test.txt:1:0: `aack` -> `ack`
This is problematic for example with pre-commit, which passes filenames to typos, causing exclusions in .typos.toml and friends or --exclude to not take effect. To work around it, one needs to additionally exclude the files on pre-commit level, but also specify in typos' config to cover direct typos invocations without pre-commit.
The text was updated successfully, but these errors were encountered:
Exclusions specified with --exclude or files.extend-exclude do not seem to affect files explicitly passed as arguments.
This is problematic for example with pre-commit, which passes filenames to typos, causing exclusions in .typos.toml and friends or --exclude to not take effect. To work around it, one needs to additionally exclude the files on pre-commit level, but also specify in typos' config to cover direct typos invocations without pre-commit.
The text was updated successfully, but these errors were encountered: