[![Build Status] (https://img.shields.io/travis/Horta/linter-py/master.svg?style=flat-square)] (https://travis-ci.org/Horta/linter-py) [![Package version!] (https://img.shields.io/apm/v/linter-py.svg?style=flat-square)] (https://atom.io/packages/linter-py)
This package will lint your opened Python files in Atom, using Pylint. It is a fork of linter-pylint to handle relative imports in Python.
Please, open an issue on GitHub whenever something goes wrong. I will do my best to resolve it as quick as possible.
apm install linter-py
.%p
for the current project (no trailing /).%m
is the message,
%i
is the numeric message ID (e.g. W0613) and %s
is the human-readable
message ID (e.g. unused-argument).PYTHONPATH
environment variable.
Use %p
for the current project directory (e.g. %p/vendor
) or %f
for the
directory of the current file location.%p
for the current project directory
or %f
for the directory of the current file location.%p
for the current
project directory or %f
for the directory of the current file.%p
will fallback to the current file's directory (equivilent to %f
) if no
project directory can be determined.The main reason of this package is to properly check relative imports in Python code. This feature is not supported by linter-pylint and a fix to it would require a massive change of its code (or a hacky patch to Pylint for linter-pylint's own sake).
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.