ruff/crates/ruff_cli/src
Vince Chan e2109c1353
Improve debug printing for resolving origin of config settings (#8729)
## Summary

When running ruff in verbose mode with `-v`, the first debug logs show
where the config settings are taken from. For example:
```
❯ ruff check ./some_file.py -v
[2023-11-17][00:16:25][ruff_cli::resolve][DEBUG] Using pyproject.toml (parent) at /Users/vince/demo/ruff.toml
```

This threw me off for a second because I knew I had no python project
there, and therefore no `pyproject.toml` file. Then I realised it was
actually reading a `ruff.toml` file (obvious when you read the whole
print I suppose) and that the pyproject.toml is a hardcoded string in
the debug log.

I think it would be nice to tweak the wording slightly so it is clear
that the settings don't neccessarily have to come from a
`pyproject.toml` file.
2023-11-17 01:10:36 +00:00
..
bin Replace .map_or(false, $closure) with .is_some_and(closure) (#6244) 2023-08-01 19:29:42 +02:00
commands Update to Rust 1.74 and use new clippy lints table (#8722) 2023-11-16 18:12:46 -05:00
snapshots Add ruff version with long version display (#8034) 2023-10-20 14:07:41 -05:00
args.rs Add hidden --extension to override inference of source type from file extension (#8373) 2023-11-08 08:02:40 +05:30
cache.rs Dedicated cache directory per ruff version (#8333) 2023-10-30 09:08:30 +00:00
diagnostics.rs Add hidden --extension to override inference of source type from file extension (#8373) 2023-11-08 08:02:40 +05:30
lib.rs Harmonize help commands' --format to --output-format with deprecation warnings (#8203) 2023-10-28 03:30:46 +00:00
panic.rs Disallow unreachable_pub (#4314) 2023-05-11 18:00:00 -04:00
printer.rs Avoid failed assertion when showing fixes from stdin (#8029) 2023-10-17 21:50:39 -04:00
resolve.rs Improve debug printing for resolving origin of config settings (#8729) 2023-11-17 01:10:36 +00:00
stdin.rs Write unchanged, excluded files to stdout when read via stdin (#8596) 2023-11-09 23:15:01 -05:00
version.rs Add ruff version with long version display (#8034) 2023-10-20 14:07:41 -05:00