-
Notifications
You must be signed in to change notification settings - Fork 133
PyCharm Configuration
Albert Zeyer edited this page Feb 3, 2023
·
17 revisions
In order to conveniently work with PyCharm on RETURNN, some modification to the settings can be made. This Guide is for PyCharm 2020.1.2, but should work for other versions as well.
Use black
- See: https://black.readthedocs.io/en/stable/integrations/editors.html
- I personally use the BlackConnect plugin now. Go to settings Tools->BlackConnect:
- Enable all Trigger settings
- Set Line length to 120
Editor->Inspections
- change Profile to Project Default
-
Python->Missing or empty docstring
- Enable weak warning or warning
Version Control->Commit Dialog
- Commit message inspections:
- enable all options
- Limit body line -> right margin should be 72
- Limit subject line -> right margin should be 72
Project: returnn->Project Structure
- exclude:
- docs/_build
- docs/api
- docs/returnn
As "Weak Warnings" might be difficult to see in the default style settings, the style can be changed under Editor->Color Scheme->General within the category: Errors and Warnings.
Note: if PEP8 errors fail to be displayed, add the Python interpreter to the project again, as specified in this post.