Fixes #3427#3433
Closed
MIXgleb wants to merge 1 commit into
Closed
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3433 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 362 363 +1
Lines 11987 12042 +55
Branches 821 831 +10
=========================================
+ Hits 11987 12042 +55 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
sobolevn
reviewed
May 26, 2025
39139a5 to
2ea329b
Compare
sobolevn
reviewed
May 30, 2025
Member
sobolevn
left a comment
There was a problem hiding this comment.
Thanks for the PR! As I said in the issue, I am still not sure about it. But, with this PR it would be easier for me to analyze existing code.
Contributor
Author
|
I also have an idea to allow the use of certain functions, such as This will be stored in a global list for user customization: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I have made things!
WPS481: forbids using complex slice indexes, Forbid complex grammar in slice #3427 . Only the Name, Constant, Attribute, Unary and Bin operators with simple expressions inside parentheses are allowed.Correct:
Wrong:
Checklist
CHANGELOG.mdRelated issues
The new check
WPS481found a complex slice in thewemake_python_styleguide/violations/base.pyfile. It has been updated and moved to a separate variable.