-
# Documentation
Although the [documentation](https://docs.python.org/3/library/ast.html#ast.walk) claims that `ast.walk` generates nodes "in no specified order" and even describes its behavior as "…
-
1. Исправить проверку линтерами.
- flake8 желательно заменить на [wemake-python-styleguide](https://github.com/marketplace/actions/wemake-python-styleguide)
- Сделать вывод в красивый html-фай…
-
# Rule request
## Thesis
Sometimes you can find a code like this:
```python
for ... in ...:
if ...:
return False # or True
return True # or False
```
And this ugly…
-
# Rule request
## Thesis
There are several cases when brackets for a tuple can be really important:
1. Single element tuples: `x,` vs `(x,)` the second one is easier to read and looks…
-
Список задач:
Исправить проверку линтерами.
flake8 желательно заменить на [wemake-python-styleguide](https://github.com/marketplace/actions/wemake-python-styleguide)
Сделать вывод в красивый html-ф…
-
# Rule request
## Thesis
```
# bad
a = 1, 2
# good
a = (1, 2)
```
## Reasoning
It shocked me to learn that in Python tuples are defined by commas and not parenthesis. This rule …
-
# Rule request
"WPS600 Forbid subclassing lowercase builtins" should allow the following
```python
class PizzaToppings(str, Enum):
MARGHERITA = "MARGHERITA"
MARINARA = "MARINARA"
```…
-
# Rule request
## Thesis
We should forbid code like:
```python
class Example(object):
def __init__(self):
self.callback = lambda arg: arg + 1
```
## Reasoning
…
-
Baselines would allow developers to introduce Ruff to their codebase incrementally by ignoring existing errors and address them as they reappear when making changes to the code.
Supported by some t…
-
### What's wrong
The following is not allowed by WPS356:
```python
from typing import Generic, Self, Tuple, TypeVar, TypeVarTuple
DType = TypeVar('DType')
Shape = TypeVarTuple('Shape')
…