Skip to main content

Possibilita a criação de testes para PEP8 e PyLint que serão executados com nose

Project description

# Py Inspector

## Versão:

[![PyPi version](https://pypip.in/v/py-inspector/badge.png)](https://pypi-hypernode.com/pypi/py-inspector)
[![PyPi downloads](https://pypip.in/d/py-inspector/badge.png)](https://pypi-hypernode.com/pypi/py-inspector)


## Build Status

### Master

[![Build Status](https://travis-ci.org/Maethorin/py-inspector.svg?branch=master)](https://travis-ci.org/Maethorin/py-inspector)
[![Coverage Status](https://coveralls.io/repos/Maethorin/py-inspector/badge.svg?branch=master)](https://coveralls.io/r/Maethorin/py-inspector?branch=master)

## Descrição

Possibilita a criação de testes para PEP8 e PyLint que serão executados com nose


## Exemplo

```python
import unittest
from py_inspector import verificadores
from seu_codigo import modulo_a_ser_validado

class ValidandoPython(unittest.TestCase, verificadores.TestValidacaoPython):
def test_deve_verificar_pep8_no_modulo(self):
arquivo = modulo_a_ser_validado.__file__.replace('pyc', 'py')
self.validacao_pep8([arquivo])

def test_deve_verificar_pylint_no_modulo(self):
arquivo = modulo_a_ser_validado.__file__.replace('pyc', 'py')
self.validacao_pylint([arquivo])
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py-inspector-0.0.3.tar.gz (2.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page