Giter VIP home page Giter VIP logo

gedit-checkpython's Introduction

Gedit Python checker

A simple gedit plugin for checking python files. Currently checks:

  • pep8 conformance with the pep8 module
  • basic checks using pyflakes

If you have gedit version <=3.10 use the gedit-3.10 branch Current master is for gedit version>=3.14 - though autochecking does not work - only Ctrl-Shift-E or click through Tools menu

There is also git pre-commit hook in tools-git directory which validates PEP8/pylint code in similar way as this plugin with two differences:

  1. it validates all committed .py files
  2. empty ending line is not validated
  3. blame for each line is checked and is reported only if the person is on given list

Installation

You will need both the pep8 and pyflakes modules, available from pypi.

  pip3 install pyflakes
  pip3 install pep8

Copy (or clone) this repository in your gedit plugins directory (create it if it does not exists):

  cd ~/.local/share/gedit/plugins/
  git clone https://github.com/rdunklau/Gedit-checkpython.git

You may also try cloning via git or ssh:

  git clone git://github.com/rdunklau/Gedit-checkpython.git

or

  git clone [email protected]:rdunklau/Gedit-checkpython.git

Pre-commit hook installation:

ln -s ~/.local/share/gedit/plugins/Gedit-checkpython/tools-git/pre-commit {MyProjectDirectory}/.git/hooks/

gedit-checkpython's People

Contributors

diegoherranz avatar jacekpliszka avatar rdunklau avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.