ruff/crates/ruff_workspace/src
konsti a268648c58
Add paths to toml parse errors (#9358)
**Summary** Previously, the information which toml file failed to parse
was missing in errors.

**Before**
```console
$ ruff check /home/konsti/projects/datasett
ruff failed
  Cause: TOML parse error at line 12, column 8
   |
12 | python "=3.9.2"
   |        ^
expected `.`, `=`
```

**After**
```console
$ ruff check /home/konsti/projects/datasett
ruff failed
  Cause: Failed to parse /home/konsti/projects/datasett/datasett-0.0.1.tar.gz/datasett-0.0.1/pyproject.toml
  Cause: TOML parse error at line 12, column 8
   |
12 | python "=3.9.2"
   |        ^
expected `.`, `=`
```

I avoided pulling in `fs_err` just for this case.
2024-01-02 11:56:51 -05:00
..
configuration.rs Add target_version to formatter options (#9220) 2023-12-21 04:05:58 +00:00
lib.rs Add most formatter options to ruff.toml / pyproject.toml (#7566) 2023-09-22 15:47:57 +00:00
options.rs Respect runtime-required decorators on functions (#9317) 2023-12-29 22:14:53 -04:00
options_base.rs Remove repeated and erroneous scoped settings headers in docs (#8670) 2023-11-14 05:44:30 +00:00
pyproject.rs Add paths to toml parse errors (#9358) 2024-01-02 11:56:51 -05:00
resolver.rs Add paths to toml parse errors (#9358) 2024-01-02 11:56:51 -05:00
settings.rs Add target_version to formatter options (#9220) 2023-12-21 04:05:58 +00:00