The following is very hard to parse.
Codespell will also check in the current directory for a pyproject.toml (or a path can be specified via --toml ) file, and the [tool.codespell] entry will be used, but only if the tomli package is installed for versions of Python prior to 3.11.
The main problem is a scope-ambiguity (or at least something like that). For, what does the 'only if' clause qualify? For instance, if I have Python <3.11, can I use a .toml file at all?