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

Fix fixall title suffix #86

Merged
merged 6 commits into from
Mar 16, 2024

Conversation

Shane-XB-Qian
Copy link
Contributor

@Shane-XB-Qian Shane-XB-Qian commented Mar 14, 2024

clear the 'fix all' meaning:
1, actually it is a 'term' which the 'all' meant all safe fixes only.
2, somehow some '(unsafe)' marker e.g F841 maybe would not be added, vs adding 'all safe fixes' suffix to 'fix all' probably would be a more direct meaning title.

@jhossbach
Copy link
Member

Setting the unsafe_fixes to true will not change the behaviour of the "Fix all" action, this is actually part of the specification.

I don't really have an opinion other than we would be the first to call it "Fix all (safe fixes)", but do we really need this? It is pointed out twice in the README, once in the configuration example and at the end.

@Shane-XB-Qian
Copy link
Contributor Author

Shane-XB-Qian commented Mar 14, 2024 via email

@Shane-XB-Qian
Copy link
Contributor Author

Shane-XB-Qian commented Mar 14, 2024 via email

@Shane-XB-Qian
Copy link
Contributor Author

@jhossbach please check again if ok to you.

@Shane-XB-Qian
Copy link
Contributor Author

so is it ok to merge now?

  1. as for the desc format, seems the lib code was like following:
    """Optional type.

    Optional[X] is equivalent to Union[X, None].
    """

there is no blank line before the close """

  1. as for the checks_with_fixall var, perhaps it was to make it clean to read.

but anyway those should be not a big deal, let me know if still need something to modify, or you can help me refine it as well. thanks.

@jhossbach jhossbach merged commit a9af4a7 into python-lsp:main Mar 16, 2024
5 checks passed
@Shane-XB-Qian Shane-XB-Qian deleted the fix_fixall_title_suffix branch March 17, 2024 03:29
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.

None yet

2 participants