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

Better regex for private attribute check #8081

Merged
merged 1 commit into from
Jan 19, 2023

Conversation

cdce8p
Copy link
Member

@cdce8p cdce8p commented Jan 19, 2023

Description

Prevent regex timeout issues for methods with unreasonable many leading underscores (> 80T).

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
@codecov
Copy link

codecov bot commented Jan 19, 2023

Codecov Report

Merging #8081 (fea2af9) into main (b87cf16) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #8081      +/-   ##
==========================================
+ Coverage   95.43%   95.44%   +0.01%     
==========================================
  Files         176      176              
  Lines       18545    18545              
==========================================
+ Hits        17698    17700       +2     
+ Misses        847      845       -2     
Impacted Files Coverage Δ
pylint/checkers/utils.py 95.33% <100.00%> (ø)
pylint/checkers/method_args.py 100.00% <0.00%> (ø)
pylint/checkers/refactoring/refactoring_checker.py 98.33% <0.00%> (+0.20%) ⬆️

@Pierre-Sassoulas
Copy link
Member

Thank you Marc ! I don't want to release another 2.15 version, let's put this in 2.16.0 directly, we're going to release soon anyway.

@Pierre-Sassoulas Pierre-Sassoulas merged commit 3ba7758 into pylint-dev:main Jan 19, 2023
@github-actions
Copy link
Contributor

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

This comment was generated for commit fea2af9

@cdce8p cdce8p deleted the adjust-regex branch January 19, 2023 13:04
@cdce8p
Copy link
Member Author

cdce8p commented Jan 19, 2023

Thank you Marc ! I don't want to release another 2.15 version, let's put this in 2.16.0 directly, we're going to release soon anyway.

Sounds good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants