Package: prospector-fixes-232
prospector==========.. image:: https://img.shields.io/pypi/v/prospector.svg:target: https://pypi.python.org/pypi/prospector:alt: Latest Version of Prospector.. image:: https://travis-ci.org/landscapeio/prospector.png?branch=master:target: https://travis-ci.org/landscapeio/prospector:alt: Build Status.. image:: https://landscape.io/github/landscapeio/prospector/master/landscape.png?style=flat:target: https://landscape.io/github/landscapeio/prospector/master:alt: Code Health.. image:: https://img.shields.io/coveralls/landscapeio/prospector.svg?style=flat:target: https://coveralls.io/r/landscapeio/prospector:alt: Test Coverage.. image:: https://readthedocs.org/projects/prospector/badge/?version=latest:target: http://prospector.landscape.io/:alt: DocumentationAbout-----Prospector is a tool to analyse Python code and output information abouterrors, potential problems, convention violations and complexity.It brings together the functionality of other Python analysis tools such as`Pylint <http://docs.pylint.org/>`_,`pep8 <http://pep8.readthedocs.org/en/latest/>`_,and `McCabe complexity <https://pypi.python.org/pypi/mccabe>`_.See the `Supported Tools <http://prospector.landscape.io/en/master/supported_tools.html>`_documentation section for a complete list.The primary aim of Prospector is to be useful 'out of the box'. A common complaint of otherPython analysis tools is that it takes a long time to filter through which errors are relevantor interesting to your own coding style. Prospector provides some default profiles, whichhopefully will provide a good starting point and will be useful straight away, and adaptsthe output depending on the libraries your project uses.Installation------------Prospector can be installed using ``pip`` by running the following command::pip install prospectorOptional dependencies for Prospector, such as ``pyroma`` can also be installed by running::pip install prospector[with_pyroma]For a list of all of the optional dependencies, see the optional extras section on the ReadTheDocspage on `supported tools <https://prospector.landscape.io/en/latest/supported_tools.html#optional-extras>`_.For more detailed information on installing the tool, see the`installation section <http://prospector.landscape.io/en/latest/#installation>`_ of the tool's main pageon ReadTheDocs.Documentation-------------Full `documentation is available at ReadTheDocs <http://prospector.landscape.io>`_.Usage-----Simply run prospector from the root of your project::prospectorThis will output a list of messages pointing out potential problems or errors, for example::prospector.tools.base (prospector/tools/base.py):L5:0 ToolBase: pylint - R0922Abstract class is only referenced 1 timesOptions```````Run ``prospector --help`` for a full list of options and their effects.Output Format~~~~~~~~~~~~~The default output format of ``prospector`` is designed to be human readable. For parsing(for example, for reporting), you can use the ``--output-format json`` flag to get JSON-formattedoutput.Profiles~~~~~~~~Prospector is configurable using "profiles". These are composable YAML files with directives todisable or enable tools or messages. For more information, read`the documentation about profiles <http://prospector.landscape.io/en/latest/profiles.html>`_.If your code uses frameworks and libraries~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Often tools such as pylint find errors in code which is not an error, for example due to attributes of classes beingcreated at run time by a library or framework used by your project.For example, by default, pylint will generate an error for Django models when accessing ``objects``, as the``objects`` attribute is not part of the ``Model`` class definition.Prospector mitigates this by providing an understanding of these frameworks to the underlying tools.Prospector will try to intuit which libraries your project uses by`detecting dependencies <https://github.com/landscapeio/requirements-detector>`_ and automatically turning onsupport for the requisite libraries. You can see which adaptors were run in the metadata section of the report.If Prospector does not correctly detect your project's dependencies, you can specify them manually from the commandline::prospector --uses django celeryAdditionally, if Prospector is automatically detecting a library that you do not in fact use, you can turnoff autodetection completely::prospector --no-autodetectNote that as far as possible, these adaptors have been written as plugins or augmentations for the underlyingtools so that they can be used without requiring Prospector. For example, the Django support is available as a pylint plugin.Strictness~~~~~~~~~~Prospector has a configurable 'strictness' level which will determine how harshly it searches for errors::prospector --strictness highPossible values are ``verylow``, ``low``, ``medium``, ``high``, ``veryhigh``.Prospector does not include documentation warnings by default, but you can turnthis on using the ``--doc-warnings`` flag.License-------Prospector is available under the GPLv2 License.