Pycharm's code style inspection: ignore/switch off specific rules

前端 未结 5 626
悲哀的现实
悲哀的现实 2021-01-01 09:17

I\'m trying to import existing project into PyCharm. I can refactor the code so that PyCharm will be pleased, but we like to have spaces around colons in dictionaries, like

5条回答
  •  囚心锁ツ
    2021-01-01 09:45

    I got the same issue, and the neat solution has been pointed by @fantabolous, from configuring PEP8.py support in PyCharm 2.7

    Example before

    Adding the error code either manually or with "Alt+Enter" on error highlight
    The error code can be found here

    After the changes

    It's great to select precisely some rules instead of disabling all warning from PEP8. Thanks to the previous comments.

提交回复
热议问题