SublimeAutoPEP8 | Automatically formats Python code to conform to the PEP | Form library
kandi X-RAY | SublimeAutoPEP8 Summary
kandi X-RAY | SublimeAutoPEP8 Summary
Automatically formats Python code to conform to the PEP 8 style guide using autopep8 and pep8 modules
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Indent a continuation line .
- Calculate rank of a candidate line .
- r Check for missing whitespace around operator .
- Parse arguments .
- Checks for blank lines before a function .
- Get imports on the source file .
- Finds ambiguous identifier .
- Performs reindent .
- Shorten a line at the given tokens .
- Fix comments .
SublimeAutoPEP8 Key Features
SublimeAutoPEP8 Examples and Code Snippets
Community Discussions
Trending Discussions on SublimeAutoPEP8
QUESTION
I'm getting a soft warning in Python:
...ANSWER
Answered 2020-Aug-01 at 21:10Firstly you should not be adding your AutoPep8 settings in Preferences.sublime-settings
instead they should all be added to the AutoPep8.sublime-settings
file which should be located in your Sublime Text User
config directory.
Secondly I think you may have muddled up the settings of 2 different Sublime Text packages, those being AutoPEP8 and Python PEP8 Autoformat. Given the warning message you mention it seems reasonable to assume you installed AutoPep8
but the settings you show are a combination of the 2 packages, see the default AutoPep8.sublime-settings file and the default pep8_autoformat.sublime-settings file. Both packages have an ignore
setting but the Python PEP8 Autoformat
package expects a list of strings, which is what you used, while the AutoPep8
package expects a string of comma separated values, which is what I think you should have used.
You should be able to open your user AutoPep8.sublime-settings
file using the Sublime Text menu:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install SublimeAutoPEP8
You can use SublimeAutoPEP8 like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page