-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for pyproject.toml #361
Comments
At the moment, we don't support any project/language-specific config files, but it is definitely something that can be added! For whoever gets to implementing this first, it'll involve an update to Config::from_dir. We'll need file-type-specific wrappers similar to what is done in |
`typos` supports a toml file, but not pyproject.toml yet (see crate-ci/typos#361). To avoid yet-another-config-file, this adds a list of files to exclude in run-spellcheck, passed to typos on the command-line. `codespell` excludes are already configured in pyproject.toml. Since file excludes and reasons are added to run-spellcheck, explicitly exclude it from being checked for both tools.
`typos` supports a toml file, but not pyproject.toml yet (see crate-ci/typos#361). To avoid yet-another-config-file, this adds a list of files to exclude in run-spellcheck, passed to typos on the command-line. `codespell` excludes are already configured in pyproject.toml. Since file excludes and reasons are added to run-spellcheck, explicitly exclude it from being checked for both tools.
`typos` supports a toml file, but not pyproject.toml yet (see crate-ci/typos#361). To avoid yet-another-config-file, this adds a list of files to exclude in run-spellcheck, passed to typos on the command-line. `codespell` excludes are already configured in pyproject.toml. Since file excludes and reasons are added to run-spellcheck, explicitly exclude it from being checked for both tools.
This PR adds support for parsing `pyproject.toml` config files. The convention for these files is to put any tooling related configuration into the `tool.NAME` section, so in this case, `tool.typos`. I have verified that the changes are pulled correctly, even if the `tool.typos` section is not present. Closes crate-ci#361.
@dosisod something I overlooked in discussing this before was how this can affect looking for a config. If someone has a We could also talk about whether we need to layer between config files with this change but I think we could save that discussion for another day |
This PR adds support for parsing `pyproject.toml` config files. The convention for these files is to put any tooling related configuration into the `tool.NAME` section, so in this case, `tool.typos`. I have verified that the changes are pulled correctly, even if the `tool.typos` section is not present. Closes #361
I've seen this has been released, but it's not documented that |
Thanks @jgillard , I forgot to document this. This feature should be good to go, you just need to relocate your settings to |
Is it possible to use the
pyproject.toml
directly instead of creating a specifictypos.toml
file?The text was updated successfully, but these errors were encountered: