We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
pyproject.toml
This works:
$ cat pyproject.toml [project] name = 1 $ ruff check --isolated --select RUF200 pyproject.toml pyproject.toml:2:8: RUF200 Failed to parse pyproject.toml: invalid type: integer `1`, expected a string | 1 | [project] 2 | name = 1 | ^ RUF200 | Found 1 error.
This doesn't:
$ ruff check --isolated --select RUF200 --stdin-filename pyproject.toml - [project] name = 1 All checks passed!
These two commands should work similarly.
The text was updated successfully, but these errors were encountered:
I think the server also doesn't report RUF200 when a pyproject.toml is opened either.
RUF200
Sorry, something went wrong.
Yes, the server doesn't run on toml files
toml
Check pyproject.toml correctly when it is passed via stdin (#16971)
6ef5221
## Summary Resolves #16950 and [a 1.5-year-old TODO comment](https://github.com/astral-sh/ruff/blame/8d16a5c8c98089b0d1be3e3fd68954be62dd2598/crates/ruff/src/diagnostics.rs#L380). After this change, a `pyproject.toml` will be linted the same as any Python files would when passed via stdin. ## Test Plan Integration tests.
Successfully merging a pull request may close this issue.
This works:
This doesn't:
$ ruff check --isolated --select RUF200 --stdin-filename pyproject.toml - [project] name = 1 All checks passed!
These two commands should work similarly.
The text was updated successfully, but these errors were encountered: