Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

docs: Change--indent-string's whitespace representation#9904

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
rogersheu wants to merge5 commits intopylint-dev:main
base:main
Choose a base branch
Loading
fromrogersheu:rsheu/docs/show-spaces

Conversation

rogersheu
Copy link
Contributor

@rogersheurogersheu commentedSep 1, 2024
edited
Loading

Type of Changes

Type
📜 Docs

Description

It was noticed that when theall-options.rst gets viewed on docs, multiple spaces get compressed into one space. This was occurring both in thehelp and in thedefault setting.

To get around this in thehelp section, I usedU+2002, which is an En Space. I'm flexible on which whitespace character to use, provided it remedies any future confusion.

For thedefault value, I just left it as a regular space, but added quotation marks so the spacing is clear.

Closes#8392

@Pierre-SassoulasPierre-Sassoulas added Documentation 📗 Skip news 🔇This change does not require a changelog entry labelsSep 1, 2024
@codecovCodecov
Copy link

codecovbot commentedSep 1, 2024
edited
Loading

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.80%. Comparing base(123fef3) to head(0e68059).
Report is 301 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@##             main    #9904   +/-   ##=======================================  Coverage   95.80%   95.80%           =======================================  Files         174      174             Lines       18918    18918           =======================================  Hits        18124    18124             Misses        794      794
Files with missing linesCoverage Δ
pylint/checkers/format.py96.40% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@Pierre-SassoulasPierre-Sassoulas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thank you the pull request, there's no need for a changelog here I applied the skip News label :)

@@ -219,11 +219,11 @@ class FormatChecker(BaseTokenChecker, BaseRawFileChecker):
(
"indent-string",
{
"default": " ",
"default":'" "',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This change thé default value in the code, it's going to cause problem. There's a mechanism in place to modify the default value for the doc but not the code, see enchent dict of available language for the spell checker or default python interpreter. (On mobile, can't link to the exact place Sorry)

rogersheu reacted with thumbs up emoji
Copy link
ContributorAuthor

@rogersheurogersheuSep 1, 2024
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I see. Yeah, I can see how this might cause a problem.

I'm looking at the arguments for enchant. Is this the one you had in mind?

        (            "spelling-dict",            {                "default": "",                "type": "choice",                "metavar": "<dict name>",                "choices": _get_enchant_dict_choices(enchant_dicts),                "help": _get_enchant_dict_help(enchant_dicts, PYENCHANT_AVAILABLE),            },        ),...

I see what's happening here, with functions being passed into choices/help, but the real issue is thatdefault has to be four spaces,, exactly to make sure the default remains correct. This means that the value has to be different when interpreted for the conversion toreStructuredText.

Does adding such functionality sound like a reasonable path forward for this PR?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Back on a PC 😄 I meant this:

DYNAMICALLY_DEFINED_OPTIONS:dict[str,dict[str,str]]= {
# Option name, key / values we want to modify
"py-version": {"default":"sys.version_info[:2]"},
"spelling-dict": {
"choices":"Values from 'enchant.Broker().list_dicts()' depending on your local enchant installation",
"help":"Spelling dictionary name. Available dictionaries depends on your local enchant installation",
},
}

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Thanks for pointing me to this@Pierre-Sassoulas !!

Been busy with work lately, but I'm hoping to find a little time to test out this change soon. 😅

Pierre-Sassoulas reacted with rocket emoji
@github-actionsGitHub Actions
Copy link
Contributor

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

This comment was generated for commit0e68059

@Pierre-SassoulasPierre-Sassoulas added the Waiting on authorIndicate that maintainers are waiting for a message of the author labelJan 25, 2025
@github-actionsGitHub Actions
Copy link
Contributor

This PR needs take over because because it has been open 8 weeks with no activity.

@github-actionsgithub-actionsbot added the Needs take over 🛎️Orignal implementer went away but the code could be salvaged. labelMar 23, 2025
@github-actionsgithub-actionsbot removed the Needs take over 🛎️Orignal implementer went away but the code could be salvaged. labelApr 21, 2025
@github-actionsGitHub Actions
Copy link
Contributor

This PR needs take over because because it has been open 8 weeks with no activity.

@github-actionsgithub-actionsbot added Needs take over 🛎️Orignal implementer went away but the code could be salvaged. and removed Needs take over 🛎️Orignal implementer went away but the code could be salvaged. labelsJun 16, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@Pierre-SassoulasPierre-SassoulasPierre-Sassoulas requested changes

Requested changes must be addressed to merge this pull request.

Assignees
No one assigned
Labels
Documentation 📗Skip news 🔇This change does not require a changelog entryWaiting on authorIndicate that maintainers are waiting for a message of the author
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Documentation has incorrect rendering of spaces for the indent-string option
2 participants
@rogersheu@Pierre-Sassoulas

[8]ページ先頭

©2009-2025 Movatter.jp