wemake-python-styleguide
wemake-python-styleguide copied to clipboard
The strictest and most opinionated python linter ever!
# Rule request ## Thesis For most of the objects (for all objects and builtins, until redefined explicitly), the default result of `__format__` is the same as `__str__`, so wrapping...
# I have made things! - Add windows-specific build - Skip platform-specific tests ## Checklist - [X] I have double checked that there are no unrelated changes in this pull...
# Bug report ## What's wrong I have an issue connected with tests. Currently, I have 7 failed tests. I didn't make any changes in the code. Can you help...
# Rule request ## Thesis According to PEP-8: > Constants are usually defined on a module level and written in all capital letters with underscores separating words. Examples include MAX_OVERFLOW...
https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/sarif-support-for-code-scanning
# Rule request ## Thesis Sometimes, a plaintext message is split by a few separate string literals with concatenation. And sometimes a whitespace is missed. For example: ```python message =...
# Rule request `raise SystemExit(arg)` and `sys.exit(arg)` are identical in behavior, one should be favored over the other for consistency. ## Reasoning I don't know which of the two would...
# Rule change request Make [WPS428](https://wemake-python-stylegui.de/en/latest/pages/usage/violations/best_practices.html#wemake_python_styleguide.violations.best_practices.StatementHasNoEffectViolation) (Found statement that has no effect) configurable. ## Thesis Let WPS428 treat some operators as having side effects and not violating the original rule....
# Rule request ## Thesis Forbid using `lambda` inside of `map` and `filter`. ```python # bad map(lambda x: x*2, lst) # good (x*2 for x in lst) # bad filter(lambda...