Command line tool¶
Added in version 1.1.0.
WPS has a command-line utility named wps
Here are listed all the subcommands it has.
wps explain
This command can be used to get description of violation. It will be the same description that is located on the website.
Syntax: wps explain <code>
Examples:
$ wps explain WPS115
WPS115 — Require ``snake_case`` for naming class attributes.
Attributes in Enum and enum-like classes (Django Choices)
are ignored, as they should be written in UPPER_SNAKE_CASE
...
$ wps explain 116
WPS116 — Forbid using more than one consecutive underscore in variable names.
Reasoning:
This is done to gain extra readability.
...