Merge pull request #149 from benjaminabel/check-pep8

Check for pep8 errors using travis
This commit is contained in:
Daniel Greenfeld 2014-10-30 16:20:33 -07:00
commit 57eeef37d0
3 changed files with 65 additions and 51 deletions

7
.travis.yml Normal file
View File

@ -0,0 +1,7 @@
language: python
before_install:
- time pip install pep8
script:
- pep8 --ignore E201,E202 --max-line-length=120 --exclude='migrations' .

View File

@ -5,6 +5,10 @@ cookiecutter-django
:target: https://requires.io/github/pydanny/cookiecutter-django/requirements/?branch=master :target: https://requires.io/github/pydanny/cookiecutter-django/requirements/?branch=master
:alt: Requirements Status :alt: Requirements Status
.. image:: https://travis-ci.org/pydanny/cookiecutter-django.svg?branch=master
:target: https://travis-ci.org/pydanny/cookiecutter-django.svg?branch=master
:alt: Build Status
A cookiecutter_ template for Django. A cookiecutter_ template for Django.
.. _cookiecutter: https://github.com/audreyr/cookiecutter .. _cookiecutter: https://github.com/audreyr/cookiecutter

View File

@ -11,7 +11,8 @@
# All configuration values have a default; values that are commented out # All configuration values have a default; values that are commented out
# serve to show the default. # serve to show the default.
import sys, os import os
import sys
# If extensions (or modules to document with autodoc) are in another directory, # If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the # add these directories to sys.path here. If the directory is relative to the
@ -183,7 +184,9 @@ latex_elements = {
# Grouping the document tree into LaTeX files. List of tuples # Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, documentclass [howto/manual]). # (source start file, target name, title, author, documentclass [howto/manual]).
latex_documents = [ latex_documents = [
('index', '{{ cookiecutter.repo_name }}.tex', u'{{ cookiecutter.project_name }} Documentation', ('index',
'{{ cookiecutter.repo_name }}.tex',
u'{{ cookiecutter.project_name }} Documentation',
u'{{ cookiecutter.author_name }}', 'manual'), u'{{ cookiecutter.author_name }}', 'manual'),
] ]