wemake-python-styleguide
wemake-python-styleguide copied to clipboard
The strictest and most opinionated python linter ever!
# Rule request Allow only a name, constant, and attribute in slice args. ## Thesis Correct: `array[3:7]` `array[start_index:end_index]` `array[index.start:index.end]` Wrong: `array[my_dict["start_index"]:my_list[-1]]` `array[start_index():index.end()]` Should be: ``` start_index = my_dict["start_index"] end_index =...
# Rule request ## Thesis We need to forbid using https://peps.python.org/pep-0750/ which will be implemented in 3.14 / 3.15 ## Reasoning It is like `f` strings, but even more complex....
https://wemake-python-styleguide.readthedocs.io/en/latest/pages/usage/violations/consistency.html#wemake_python_styleguide.violations.consistency.FormattedStringViolation The violation has been removed because "ruff covers this rule." However, I can't find a ruff rule that actually covers it. There are ruff rules that do the opposite...
### What's wrong In [version 1.0.0](https://github.com/wemake-services/wemake-python-styleguide/releases/tag/1.0.0) many rules were removed in favour of the same rules in Ruff. Why some of the WPS2xx rules were not removed, even though they...