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

[symilar] Fix the short form options that weren't being processed properly #9709

Merged
merged 3 commits into from
Jun 11, 2024

Conversation

Pierre-Sassoulas
Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas commented Jun 7, 2024

Type of Changes

Type
βœ“ πŸ› Bug fix

Description

Closes #9343, follow-up to migrate to a more "2010" way of doing things in #9710

@Pierre-Sassoulas Pierre-Sassoulas added this to the 3.2.4 milestone Jun 7, 2024
@Pierre-Sassoulas Pierre-Sassoulas marked this pull request as draft June 7, 2024 06:15

This comment has been minimized.

@Pierre-Sassoulas Pierre-Sassoulas marked this pull request as ready for review June 7, 2024 06:42
Copy link

codecov bot commented Jun 7, 2024

Codecov Report

All modified and coverable lines are covered by tests βœ…

Project coverage is 95.85%. Comparing base (9f8dcbd) to head (e798aca).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #9709   +/-   ##
=======================================
  Coverage   95.84%   95.85%           
=======================================
  Files         174      174           
  Lines       18865    18873    +8     
=======================================
+ Hits        18082    18090    +8     
  Misses        783      783           
Files Coverage Ξ”
pylint/checkers/similar.py 96.30% <100.00%> (+0.07%) ⬆️

Copy link
Contributor

github-actions bot commented Jun 7, 2024

πŸ€– According to the primer, this change has no effect on the checked open source code. πŸ€–πŸŽ‰

This comment was generated for commit e798aca

@Pierre-Sassoulas Pierre-Sassoulas added the duplicate-code Related to code duplication checker label Jun 7, 2024
@@ -497,3 +497,32 @@ def test_set_duplicate_lines_to_zero() -> None:
similar.Run(["--duplicates=0", SIMILAR1, SIMILAR2])
assert ex.value.code == 0
assert output.getvalue() == ""


@pytest.mark.parametrize("v", ["d"])
Copy link
Collaborator

Choose a reason for hiding this comment

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

This seems unnecessary?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, but with argparse we'll be able to do both again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport maintenance/3.2.x Crash πŸ’₯ A bug that makes pylint crash duplicate-code Related to code duplication checker
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use "symilar -d args" error
2 participants