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.python.org/pypi/py-inspector)
[![PyPi downloads](https://pypip.in/d/py-inspector/badge.png)](https://pypi.python.org/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])
```
## Versão:
[![PyPi version](https://pypip.in/v/py-inspector/badge.png)](https://pypi.python.org/pypi/py-inspector)
[![PyPi downloads](https://pypip.in/d/py-inspector/badge.png)](https://pypi.python.org/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.5.tar.gz
(2.6 kB
view details)
File details
Details for the file py-inspector-0.0.5.tar.gz
.
File metadata
- Download URL: py-inspector-0.0.5.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a8f34c40e91d7be62798afd6260f2f5085033b0db16c8460053d7ec97ed67af |
|
MD5 | 63ea4e052ed2f477cca8c6cc8e48b541 |
|
BLAKE2b-256 | 05aa31558b762c8c2201f68fdec3da815ababcd7d58d41e4aa041f942ad94969 |