wemake-services / wemake-python-styleguide

The strictest and most opinionated python linter ever!
https://wemake-python-styleguide.rtfd.io
MIT License
2.5k stars 381 forks source link

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

Open Day0Dreamer opened 5 months ago

Day0Dreamer commented 5 months ago

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.

sobolevn commented 5 months ago

Please, feel free to send a PR with the docs.