Some time back I wrote this short guide for our internal wiki at Stack.
I'm sharing it here for anyone with an interest in Python linting.
Our team generally subscribes to a modified version of pep8.
Reference: Google Standards for Python
Specifically:
Reference: Google Standards for Python
Specifically:
- We allow long lines up to 120 characters.
- Classes should be CamelCase
- Globals FULLY_CAPITALIZED
- All other variables lower_snake_case
- Install sublime text Package Control
- From inside sublime text:
- CTRL + SHIFT + P to open the package control menu
- Install anaconda
- if you already have it you may need to reinstall anaconda when done
- Install Sublime Text Package Resource Viewer
- Update Anaconda Settings
- Go to preferences -> Package Settings -> Anaconda
- paste anaconda settings into the user settings file
- Using Package resource viewer open your current color scheme
- CTRL + Shift + P - then type color scheme
- Select The Package Resource Viewer option for your color scheme.
- Add the color scheme JSON into the Rules section of your color scheme.
- You'll need to do this any time you switch to another color scheme.
No comments:
Post a Comment