Skip to content
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

feat: Add option to list configuration values #9930 #10035

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shubhamsugara22
Copy link

Type of Changes

Type
✨ New feature

Description

working on adding new config-related commands (pylint --config-list and pylint --config-list-show-origin) to help users debug Pylint configuration issues more easily. These commands will display the current configuration values and their origins, similar to how git config list and git config list --show-origin work.

We've added the corresponding options in base_options.py and are defining custom callback actions in callback_actions.py to handle these commands, ensuring that users can retrieve and verify their Pylint configuration setup in a clear and structured way.

Closes #9930

@Pierre-Sassoulas Pierre-Sassoulas added this to the 4.0.0 milestone Oct 19, 2024
Copy link

codecov bot commented Oct 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.80%. Comparing base (5feface) to head (c7293f4).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main   #10035   +/-   ##
=======================================
  Coverage   95.80%   95.80%           
=======================================
  Files         174      174           
  Lines       18935    18935           
=======================================
  Hits        18141    18141           
  Misses        794      794           
Files with missing lines Coverage Δ
pylint/lint/base_options.py 100.00% <ø> (ø)

Copy link
Contributor

🤖 According to the primer, this change has no effect on the checked open source code. 🤖🎉

This comment was generated for commit c7293f4

@DanielNoord
Copy link
Collaborator

Is there a chance this could be added to pylint-config. I never got round to fleshing that out, but this does seem like a feature that should live there instead of the main command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement ✨ Improvement to a component Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to list configuration values optionally with origins
3 participants