Skip to content
This repository was archived by the owner on Nov 20, 2020. It is now read-only.
/ spyder-autopep8 Public archive

A plugin to run the autopep8 python linter from within the spyder editor.

License

Notifications You must be signed in to change notification settings

spyder-ide/spyder-autopep8

Folders and files

NameName
Last commit message
Last commit date
Sep 1, 2015
Sep 6, 2016
Aug 31, 2015
Sep 12, 2015
Aug 31, 2015
Aug 31, 2015
Aug 31, 2015
Nov 19, 2020
Jun 8, 2016

Repository files navigation

spyder-autopep8

Important Notes

  • This plugin is no longer maintained but you can still use with Spyder 3 (see below).
  • This plugin is incompatible with Spyder 4. However, auto-formatting was added to Spyder 4.2.0 (released in November 2020).
  • To auto-format a file or selection in Spyder 4.2.0, you need to go to the menu Source > Format file or selection or press the shortcut Ctrl + Alt + I (Cmd + Alt + I in macOS).

Description

This is a plugin to run the Autopep8 Python linter from within the Python IDE Spyder version 3.

Requirements

spyder==3
autopep8

Install instructions

See https://github.com/spyder-ide/spyder/wiki/User-plugins. You can only install this plugin from source and with any version of Spyder 3.

Usage

Press Shift+F8 (default) to run autopep8 on the current file or go to Source > Run autopep8 code autoformatting.

If some text is selected, autopep8 will run on this text only.

Informations about the execution will be displayed in the statusbar.

Screenshot

Autopep8 preferences:

img_src/screenshot_preferences.png