wemake-python-styleguide
wemake-python-styleguide copied to clipboard
The strictest and most opinionated python linter ever!
### What's wrong [Last release](https://github.com/wemake-services/wemake-python-styleguide/releases/tag/0.16.1) is 6 months old. This prevent upgrade of [flake8 to v5](https://gitlab.com/kubitus-project/kubitus-ingress-operator/-/merge_requests/182), [flake8-bandit to v4](https://gitlab.com/kubitus-project/kubitus-ingress-operator/-/merge_requests/207) (and also [pycodestyle to v2.9.1](https://gitlab.com/kubitus-project/kubitus-pod-cleaner-operator/-/merge_requests/53) and [pyflakes to v2.5.0](https://gitlab.com/kubitus-project/kubitus-pod-cleaner-operator/-/merge_requests/54)) ### How...
Closes https://github.com/wemake-services/wemake-python-styleguide/issues/2492
### What's wrong I was trying to test the `wemake-python-styleguide` using the docker command to see how it compares with my own linting setup. ``` $ docker run --rm wemakeservices/wemake-python-styleguide...
# Rule request Empty lines in the method body are bad. I propose prohibit their use or limit it count in method body ## Thesis I received a PR with...
### What's wrong PEP8 says that "4 spaces (an extra level of indentation) must be added to distinguish arguments from the rest". But linter accepts only 4 spaces, not 8....
Hi, there is a list of statements: 1. wemake-python-styleguide has license MIT 2. flake8-isort has license GPL 3. flake8-isort is one of mandatory dependencies of wemake-python-styleguide These facts force you...
### What's wrong I already wrote all in details for Pylint, please read: https://github.com/PyCQA/pylint/issues/7287 ```python class Foo: def __init__(*, bar = 10): ... class Child(Foo): def __init__(*, bar = 99999):...
https://github.com/PyCQA/flake8-commas is now read-only. It would be a good idea to include their code to our project, because we rely on it.
### What's wrong Source code: https://github.com/MobileTeleSystems/horizon/blob/adc102caa8a84c281b8401b17d6d7998c073941e/horizon/client/base.py#L29 ```python class BaseResponse(Protocol): """Response-like object. Same interface is shared between requests.Response and httpx.Response""" @property def status_code(self) -> int: ... @property def content(self) -> Any:...
# Rule request Disallow suppressing a CancelledError in most cases. i.e. ``` try: ... except asyncio.CancelledError: ... # Code without an unconditional (re-)raise. ``` ## Reasoning Suppressing cancellations is difficult...