Skip to content

Still cannot specify custom + default dictionary in codespellrc file #3474

Closed
@oddhack

Description

@oddhack

I had thought this was addressed by #2767 / #2727 in codespell 2.3.0, but AFAICT this is still not supported. For example I can successfully do

codespell --builtin clear,rare -D - -D my-dictionary

with the desired behavior. But trying to replicate this in my codespellrc via

builtin = clear,rare
dictionary = -
dictionary = my-dictionary

gives a "ERROR: ill-formed config file: While reading from '/path/to/codespellrc' [line 6] option 'dictionary' in section 'codespell' already exists", while

builtin = clear,rare
dictionary = -,my-dictionary

gives a "error: argument -D/--dictionary: expected one argument" error.

Am I misunderstanding something about how this is supposed to work, such that there is now a way to specify both builtin and custom dictionaries? Or is there still more TBD in this area? @larsoner you apparently closed #2727 as completed, so if you can provide some insight, I'd appreciate it.

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