wemake-python-styleguide icon indicating copy to clipboard operation
wemake-python-styleguide copied to clipboard

The strictest and most opinionated python linter ever!

Results 174 wemake-python-styleguide issues
Sort by recently updated
recently updated
newest added

### What's wrong With the following code, I get an WPS441 on the last use of `test`: ``` for test in (1, 2): print(test) test = 5 print(test) ``` ###...

bug

Bumps [typing-extensions](https://github.com/python/typing_extensions) from 4.8.0 to 4.9.0. Release notes Sourced from typing-extensions's releases. 4.9.0 This feature release adds typing_extensions.ReadOnly, as specified by PEP 705, and makes various other improvements, especially to...

dependencies
python

It appears that [pydocstyle](https://github.com/pycqa/pydocstyle), the tool underlying [flake8-docstrings](https://github.com/PyCQA/flake8-docstrings) has been deprecated in favor of [ruff](https://github.com/astral-sh/ruff) (https://github.com/PyCQA/pydocstyle/pull/658). Thus, this dependency should probably be changed in the future. Also, maybe it would...

# I have made things! I am adding `.pre-commit-hooks.yaml` to make it possible to run wemake-python-styleguide as a [pre-commit](https://pre-commit.com/) hook. The syntax [is the same as flake8 repo](https://github.com/PyCQA/flake8/blob/main/.pre-commit-hooks.yaml) (which is...

### What's wrong The following code raises WPS473, even though there are no empty lines: ```python def kk() -> None: raise ValueError( "This is " "a very " "long message...

bug

### What's wrong pipeline fails with "Unable to process file command 'output' successfully." maybe is relatad with: > Recently github [has announced change](https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/) that echo "::set-output name=x::y" command is deprecated...

bug

### What's wrong I have a class with two methods. WPS ignore the absence of a new line between methods ```python """Example of code.""" from typing import Protocol class ClassExample(Protocol):...

bug

# Rule request As discussed in https://github.com/wemake-services/wemake-python-styleguide/issues/165#issue-365243023 May be add https://github.com/plinss/flake8-noqa? ## Thesis Remove violation noqa after refractoring or old code ## Reasoning Be strict also in noqa usage

rule request

### What's wrong WPS451 breaks type safety by disallowing positional-only arguments. For example: ``` from typing import Callable, Concatenate, ParamSpec P = ParamSpec("P") def decorator(f: Callable[Concatenate[str, P], int]) -> Callable[P,...

bug

### What's wrong I have this minimal reproducible example which has several WPS417 violations ```python def main(): some_dict = { -2: 'A', -1: 'B', 0: 'C', 1: 'D', 2: 'E',...

bug