Skip to content

How to set up WPS (wemake-python-styleguide) autocheck in PyCharm #2904

@Day0Dreamer

Description

@Day0Dreamer

Good day. I've discovered a way of integrating WPS to PyCharm.
Project mainainers might find this useful and would like to put it on display here and on the webpage.

Windows:

  1. Install pipx for convenience
  2. pipx install --include-deps wemake-python-styleguide
  3. Try running "C:\Users\username\.local\pipx\venvs\wemake-python-styleguide\Scripts\flake8.exe"
    Flollow this: Flake8 + PyCharm: tutorial
  4. Add installed flake8 as a file watcher via path from 3)
  5. Pipe file watcher results to Inspector system in PyCharm.

I don't know how to do a proper pull request on such a matter, and all out of time already. Nevertheless this seems to be extremely valuable for newcomers, who don't enjoy console launches that much.

For me personally, this is a game changer, as I now have RUFF+PyRight+WPS, all in PyCharm and can kiss my console goodbye!
P.S. I'd love to have WPS in RUFF, it's not there yet, so there are three tools on autorun at every .py save.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions