All Projects → pchomik → linter-python

pchomik / linter-python

Licence: MIT license
Atom plugin to lint python files

Programming Languages

typescript
32286 projects
python
139335 projects - #7 most used programming language

linter-python package

Plugin to lint python files. Whole logic based on pylama and pylama-pylint applications.

Package usage

Requirements

  • python >= 2.7
  • pylama >= 7.3.3
  • pylama-pylint (optional)

Atom linters

Linters for python

Plugin installation

Atom plugin installation

Package usage

  • Go to Settings -> Install
  • Type "linter-python"
  • Press "Install"

Pylama installation

pip install pylama pylama-pylint

If pip is something new for you please look here for more detail.

Plugin configuration

Basic plugin configuration

Package usage

  • Go to Settings -> Packages
  • Type "linter-python" and go to plugin settings
  • Set path to pylama binary e.g. /usr/bin/pylama
  • Select needed pylama options

Options added in 3.0.4 version

Package usage

  • Atom API was used to select error
  • URL to error description

Plugin configuration vs. performance

Please be informed that plugin has to create temporary files to lint file in the fly. In case of any performance issues please try to change trigger option to "File saved". For such option temporary files are not needed.

Pylama related topics

Pylama results depend on plugin order

It was discovered that pylama plugin order may change lint results. Issue is under investigated and will be reported to pylama project as soon as I get time to create test scenarios.

Tests show that the most trusted configuration is: mccabe,pyflakes,pylint,pep8,pep257

Pyflakes plugin may change pylama result

New issue was created in pylama project. Pylama results are not constant when pyflakes plugin is enabled. Issue is visible with Python 3.5.1

Issue details are available here.

Lint errors

Starting from plugin version 3.0.0 lint output provides link to error description available on GitHub project.

Thanks to @linickx who created all pages. Please provide more pull requests if you like to create single place for all python defined errors.

Contribution

Pull requests, issues, issue investigation, reviews are more than welcome.

Contributors

  • @linickx
  • @Arcanemagus
  • @Zebradil

License

Package license is available here

Contact

Please create issue in case of any question or feature request.

Changelog

This section contains changes from last 3 releases.

Full list of changes is available here

3.1.2

  • (#37) Fix issue: Cannot read property 'getPath' of undefined

3.1.1

  • Update release notes and readme file

3.1.0

  • (#31) Execution finished with error because of pylama exit code change

3.0.5

  • (#28) Add cache functionality
  • (#25) Remove underline options from plugin configuration
  • (#27) Documentation update
  • (#26) Regenerate new plugin exaples
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].