Skip to content

Show user configuration file path in --help#276

Closed
andersk wants to merge 1 commit into
astral-sh:mainfrom
andersk:help-config-path
Closed

Show user configuration file path in --help#276
andersk wants to merge 1 commit into
astral-sh:mainfrom
andersk:help-config-path

Conversation

@andersk
Copy link
Copy Markdown
Contributor

@andersk andersk commented Sep 28, 2022

Refs #215 (comment), #248.

Note that the after_help() computation runs on every invocation of ruff, not just ruff --help, which is less than ideal but probably fine. I’ll let you decide whether it’s worthwhile.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
@charliermarsh
Copy link
Copy Markdown
Member

I think I may prefer what we have with --show_settings?

@andersk
Copy link
Copy Markdown
Contributor Author

andersk commented Sep 29, 2022

What that doesn’t do is tell you where you’d put a user config file if you don’t already have one.

Maybe it could be improved to do that, or maybe it doesn’t matter much.

@andersk andersk closed this Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants