wemake-python-styleguide
wemake-python-styleguide copied to clipboard
The strictest and most opinionated python linter ever!
### What's wrong The `forbidden-inline-ignore` option is parsed from a comma-separated string into a tuple, but the code itself joins all codes using an empty string, then tries to split...
# Rule request While some short names have been whitelisted in #1548, there are still cases when using short names is justified. For example, [albumenatations](https://albumentations.ai) library uses `A` as an...
### What's wrong F-string formatting for date/datetime triggers false positive for WPS323 Example: ```python from datetime import date current_date = date.today() print(f"{current_date:%d.%m.%Y}") ``` Ouput: ```WPS323: Found `%` string formatting``` ###...
# I have made things! ## Checklist - [x] I have double checked that there are no unrelated changes in this pull request (old patches, accidental config files, etc) -...
# Rule request There is impossible to validate correctness of custom exception. ## Thesis I propose to allow `assert` statement to use variable outside context manager. ``` with pytest.raises(CustomError) as...
# Rule request ## Thesis It's very common to use ellipsis (`...`) to indicate a string output has been shortened. I'm using the `textwrap` utility module from Python and you...
This package of lints is great, however it adds quite a lot of dependencies into projects which may only want a small number of the rules available here. (Many of...
Bumps [hypothesis](https://github.com/HypothesisWorks/hypothesis) from 6.100.1 to 6.100.2. Commits 8005910 Bump hypothesis-python version to 6.100.2 and update changelog 4394ae4 Merge pull request #3960 from Zac-HD/upgrade-deps f449cf9 Various final fixes a98771f Update pinned...
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.1.1 to 8.2.0. Release notes Sourced from pytest's releases. 8.2.0 pytest 8.2.0 (2024-04-27) Deprecations #12069: A deprecation warning is now raised when implementations of one of the...
Bumps [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear) from 24.4.21 to 24.4.26. Release notes Sourced from flake8-bugbear's releases. 24.4.6 B909: Fix false positive affecting containers of mutables (#469) Commits 8d524af Update CHANGES + move to version...