Skip to content

New option to run on individual files #2622

@waldyrious

Description

@waldyrious

I'd like to be able to run codespell on one or more specific files, rather than an entire directory. This would essentially have the opposite effect of -S/--skip.

The option should support filenames, directories, and blob patterns, all three as both a single argument and comma-separated lists. For example, if the option name is -f/--files:

codespell -f foobar.txt
codespell --files="foo.txt,bar.txt"
codespell --files="./some/folder"
codespell --files="*.md,*.txt"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions