Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeremija/betterpep8
Sublime Text plugin for running pep8, flake8 or any other CLI code checker tool
https://github.com/jeremija/betterpep8
Last synced: 9 days ago
JSON representation
Sublime Text plugin for running pep8, flake8 or any other CLI code checker tool
- Host: GitHub
- URL: https://github.com/jeremija/betterpep8
- Owner: jeremija
- Created: 2013-11-02T11:26:18.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-30T08:57:52.000Z (almost 10 years ago)
- Last Synced: 2024-04-14T19:48:31.823Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 371 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Better PEP8
Better PEP8 is a Sublime plugin which uses the `pep8` or `flake8` command line tool and displays the results. It can be configured to use any other external tool.
![Screenshot](https://raw.github.com/jeremija/BetterPEP8/screenshots/screenshot.png)
**Prerequisites:** [pep8](https://pypi.python.org/pypi/pep8) or [flake8](https://pypi.python.org/pypi/flake8)
##Installation of prerequisites (ubuntu):
$ apt-get install pep8 python-flake8
or via PIP:
$ pip install pep8 flake8
##Installation of the plugin itself (linux):
Clone the this repository to the `$SUBLIME_SETTINGS/Packages` folder, where `$SUBLIME_SETTINGS` is the sublime settings path. So on a linux machine this would be:
$ cd ~/.config/sublime-text-2/Packages/
$ git clone https://github.com/jeremija/BetterPEP8.git##Usage
- `Control`-`7` runs the defined command line tool on the current active file
- `F4` jumps to next error
- `Shift`-`F4` jumps to previous errorMultiple directories/files are supported via the Side Bar's Context Menu.
##Default configuration file
{
"binary" : "pep8",
"flags" : {
"--max-line-length" : "99",
"--ignore" : "E126,E127,E128"
},
"file-regex" : "(.*):([0-9]*):([0-9]*):[ ](.*)"
}- `binary` the command line tool to launch
- `flags` add your options for the command line tool hereOptional property is `line-regex`. The `file-regex` or `line-regex` properties should not be modified if you plan to use pep8 or flake8. Changeg the `binary` property to `flake8` if you wish to use flake8 instead of `pep8`.
##Note
This has been tested to work on
* Sublime Text build 2221
* Sublime Text build 3059