sobolevn
sobolevn
# Rule request ## Thesis This code should raise: ```python x = 0 for i in items: x += 1 print(items[x]) ``` But, it is not! Why is it a...
# Rule request ## Thesis One can write: ```python x = (original, ) ``` And also: ```python x = (original,) ``` There are two options: with and without whitespace after...
# Rule request ## Thesis Python shocks me everyday. I found out (the hard way) that one can write `some .method()` and even `some . method()` Here's what `WPS` says:...
We need to find all violations that we do cover with this project and send PSs with the links to our docs from the problem's page. Website: https://docs.quantifiedcode.com/python-anti-patterns Repo: https://github.com/quantifiedcode/python-anti-patterns...
# Rule request ## Thesis One can write this code: ```python if "list" not in dictionary: dictionary["list"] = [] dictionary["list"].append("list_item") ``` But, it is an anti-pattern. Instead one should write:...
We can try it: https://github.com/Instagram/LibCST This might solve a lot of our problems. Like: 1. New lines in brackets 2. Brackets around operators (like #385 and #214 and #454)
We need to eval things we can. This issue is about working with booleans. For example: `True and False` is `False`, we can easily find this out. But, `True and...
# Rule request ## Thesis There are cases when parentheses can be removed. Like: `x = ('string')`. There are also examples when it can not be removed: `x = (1...
https://codeclimate.com/blog/build-your-own-codeclimate-engine/ Then we can fill their form to suggest the engine: https://codeclimate.com/dev_form/
# Rule request ## Thesis We can create generator expression that produce a different result from what we expect. ```python >>> a = 1 >>> b = (a * i...