sobolevn
sobolevn
https://github.com/Instagram/Fixit/blob/master/fixit/rules/gather_sequential_await.py
# Rule request ## Thesis We should raise a warning when `noqa` comment is unused. However, I am not sure that this is possible without patching `flake8`. ## Reasoning Consider...
I have found a great article about code styles: https://habr.com/ru/post/236785/ (sorry non-Russian people, it is written in Russian. You can use google translate for it) The thing I like about...
This bug: https://bugs.python.org/issue46175 We need to require `super(cls, self)` in this case.
Right now we can have two problems: ```python class Some(object): for x in [1, 2]: print(x) print(Some.x) # oups, will show you `2` ``` and with modules: ``` # some.py...
We need to fork [flake8-commas](https://github.com/PyCQA/flake8-commas) because it is not maintained anymore.
https://github.com/tonybaloney/perflint It might contain some great ideas that we can port to flake8's world.
Today I saw this code: ```python if isinstance(x, int): ... elif isinstance(x, str): ... elif isinstance(x, int): ... ``` The thing is that `isinstance(x, int)` is duplicated. And the second...
# Rule request ## Thesis We need to fix how we write ternary expressions, currently it has too many options: ```python some = other if x > 1 else None...
# Rule request ## Thesis We should forbid code like: ```python class Example(object): def __init__(self): self.callback = lambda arg: arg + 1 ``` ## Reasoning This will be very tricky...