Replies: 2 comments
-
I can see why this is inconvenient, but I think for me this falls pretty squarely under the intent of the E501 rule. In other words, I think folks would find it surprising if these were excluded, since those are overly long lines that could be further broken-down (for example, could you assign |
Beta Was this translation helpful? Give feedback.
-
Oh yeah, definitely. In fact, searching around before starting this discussion, doing something similar to that seems to be the preferred way from getting around it. The thing is, in my opinion, doing that would result in the creation of otherwise unnecessary variables, nesting, and complexity, which goes against certain parts of the zen of python, which spawned PEP8. |
Beta Was this translation helpful? Give feedback.
-
In my code, there's this snippet:
As you can see, I'm working with a dictionary that has many, many, many, many layers, and doing comparisons between different elements of that same dictionary (in reality, a JSON file got through a GET request) so I get a lot of nested indexes on both sides of the comparison operation, and there's no neat to condense it, and since these aren't inside parenthesis, I can't separate them by line, so if you could implement a check for this kind of situation, it would be awesome.
Beta Was this translation helpful? Give feedback.
All reactions