Skip to content

Instantly share code, notes, and snippets.

@hotsyk
Created March 25, 2010 09:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hotsyk/343354 to your computer and use it in GitHub Desktop.
Save hotsyk/343354 to your computer and use it in GitHub Desktop.
./manage.py:4:20: E261 at least two spaces before inline comment
import settings # Assumed to be in the same directory.
^
./manage.py:7:80: E501 line too long (299 characters)
sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
^
./settings.py:4:10: E401 multiple imports on one line
import os, sys
^
./settings.py:10:48: E231 missing whitespace after ','
if not os.path.exists(os.path.join(PROJECT_PATH,"logs")):
^
./settings.py:11:39: E231 missing whitespace after ','
os.mkdir(os.path.join(PROJECT_PATH,"logs"))
^
./settings.py:14:28: E251 no spaces around keyword / parameter equals
logging.basicConfig(level = logging.DEBUG,
^
./settings.py:21:1: E303 too many blank lines (3)
DEBUG = True
^
./settings.py:30:80: E501 line too long (101 characters)
DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
^
./settings.py:34:80: E501 line too long (90 characters)
DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3.
^
./settings.py:35:80: E501 line too long (88 characters)
DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3.
^
./settings.py:59:30: E261 at least two spaces before inline comment
MAX_FILE_UPLOAD_SIZE = 524288#500K
^
./settings.py:99:70: W291 trailing whitespace
TEMPLATE_CONTEXT_PROCESSORS = ("django.core.context_processors.auth",
^
./settings.py:103:80: E501 line too long (84 characters)
"jobtest_Ruslan.context_proc.processor.cont_settings",
^
./settings.py:103:85: W291 trailing whitespace
"jobtest_Ruslan.context_proc.processor.cont_settings",
^
./settings.py:104:2: W291 trailing whitespace
)
^
./settings.py:114:1: W191 indentation contains tabs
'jobtest_Ruslan.mydata',
^
./settings.py:114:1: E101 indentation contains mixed spaces and tabs
'jobtest_Ruslan.mydata',
^
./test_settings.py:1:27: E231 missing whitespace after ':'
test_account = {"username":"baby",
^
./test_settings.py:5:80: E501 line too long (107 characters)
test_contact = {"bio": "I was born January 27, 1984, Aquarius, like music, mountain bike and snowboard...",
^
./test_settings.py:6:29: E231 missing whitespace after ':'
"first_name":"Ruslan",
^
./urls.py:11:1: W191 indentation contains tabs
^
./urls.py:11:1: W291 trailing whitespace
^
./urls.py:12:1: W191 indentation contains tabs
^
./urls.py:12:1: W291 trailing whitespace
^
./urls.py:13:1: W191 indentation contains tabs
#('^$', main_page),
^
./urls.py:14:1: E101 indentation contains mixed spaces and tabs
url(r'^accounts/login/$', 'django.contrib.auth.views.login',\
^
./urls.py:15:1: E101 indentation contains mixed spaces and tabs
{'template_name': 'registration/login.html'}, name="auth", ),
^
./urls.py:16:1: E101 indentation contains mixed spaces and tabs
(r'^accounts/logout/$', 'django.contrib.auth.views.logout',\
^
./urls.py:17:1: E101 indentation contains mixed spaces and tabs
{'template_name': 'registration/logout.html'}),
^
./urls.py:18:1: E101 indentation contains mixed spaces and tabs
(r'^accounts/profile/$', contact),
^
./urls.py:19:1: E101 indentation contains mixed spaces and tabs
(r'^admin/doc/', include('django.contrib.admindocs.urls')),
^
./urls.py:20:1: E101 indentation contains mixed spaces and tabs
(r'^admin/', include(admin.site.urls)),
^
./urls.py:25:1: E101 indentation contains mixed spaces and tabs
urlpatterns += patterns('',
^
./urls.py:26:1: E101 indentation contains mixed spaces and tabs
(r'^media/(?P<path>.*)$', 'django.views.static.serve',
^
./urls.py:27:1: E101 indentation contains mixed spaces and tabs
{'document_root': settings.MEDIA_ROOT, 'show_indexes': True}),
^
./urls.py:30:1: W391 blank line at end of file
^
./views.py:5:1: W391 blank line at end of file
^
./context_proc/models.py:2:1: W391 blank line at end of file
^
./context_proc/processor.py:6:1: E302 expected 2 blank lines, found 0
def cont_settings(request):
^
./context_proc/processor.py:10:1: W291 trailing whitespace
^
./context_proc/processor.py:11:23: E231 missing whitespace after ':'
return {"settings":settings}
^
./context_proc/tests.py:10:1: E302 expected 2 blank lines, found 1
class TestContextProcessor(HttpTestCase):
^
./context_proc/tests.py:17:23: E251 no spaces around keyword / parameter equals
msg = "There is no 'django.settings' in RequestContext")
^
./context_proc/tests.py:18:1: W391 blank line at end of file
^
./crud_logger/models.py:8:1: W291 trailing whitespace
^
./crud_logger/models.py:9:1: W291 trailing whitespace
^
./crud_logger/models.py:17:27: E231 missing whitespace after ','
(CREATE,_("Create")),
^
./crud_logger/models.py:22:1: W291 trailing whitespace
^
./crud_logger/models.py:23:1: W291 trailing whitespace
^
./crud_logger/models.py:24:5: E303 too many blank lines (3)
app_label = models.CharField(max_length=512)
^
./crud_logger/models.py:28:1: W291 trailing whitespace
^
./crud_logger/models.py:29:1: W291 trailing whitespace
^
./crud_logger/models.py:34:27: E231 missing whitespace after ':'
logdict = {"app_label":sender._meta.app_label,
^
./crud_logger/models.py:37:33: E231 missing whitespace after ':'
logdict.update({"optype":CRUDlogger.OPTYPE.CREATE})
^
./crud_logger/models.py:39:33: E231 missing whitespace after ':'
logdict.update({"optype":CRUDlogger.OPTYPE.UPDATE})
^
./crud_logger/models.py:40:1: W291 trailing whitespace
^
./crud_logger/models.py:42:1: E302 expected 2 blank lines, found 0
def log_delete(sender, *args, **kwargs):
^
./crud_logger/models.py:49:1: W291 trailing whitespace
^
./crud_logger/tests.py:10:1: W291 trailing whitespace
^
./crud_logger/tests.py:11:1: E302 expected 2 blank lines, found 1
class TestCRUDLog(DatabaseTestCase):
^
./crud_logger/tests.py:18:55: E231 missing whitespace after ','
date_of_birth=date(1984,01,27))
^
./crud_logger/tests.py:19:80: E501 line too long (81 characters)
crud_count = CRUDlogger.objects.filter(app_label=profile._meta.app_label,
^
./crud_logger/tests.py:20:80: E501 line too long (82 characters)
module_name=profile._meta.module_name,
^
./crud_logger/tests.py:24:1: W291 trailing whitespace
^
./crud_logger/tests.py:32:80: E501 line too long (81 characters)
crud_count = CRUDlogger.objects.filter(app_label=profile._meta.app_label,
^
./crud_logger/tests.py:33:80: E501 line too long (82 characters)
module_name=profile._meta.module_name,
^
./crud_logger/tests.py:37:1: W291 trailing whitespace
^
./crud_logger/tests.py:44:80: E501 line too long (81 characters)
crud_count = CRUDlogger.objects.filter(app_label=profile._meta.app_label,
^
./crud_logger/tests.py:45:80: E501 line too long (82 characters)
module_name=profile._meta.module_name,
^
./lib/tddspry/cases.py:28:80: E501 line too long (86 characters)
.. __: http://somethingaboutorange.com/mrl/projects/nose/0.11.0/testing_tools.html
^
./lib/tddspry/inject.py:26:32: W602 deprecated form of raising exception
raise Exception, '%r not found' % name
^
./lib/tddspry/django/__init__.py:81:80: E501 line too long (81 characters)
And from :ref:`release_0.3` of ``tddspry`` ``HttpTestCase`` consist of ``client``
^
./lib/tddspry/django/__init__.py:116:80: E501 line too long (104 characters)
.. _`django.test.Client`: http://docs.djangoproject.com/en/dev/topics/testing/#module-django.test.client
^
./lib/tddspry/django/cases.py:138:5: E303 too many blank lines (2)
def assert_count(self, model, number):
^
./lib/tddspry/django/cases.py:383:38: W602 deprecated form of raising exception
raise TwillAssertionError, 'No match to %r' % what
^
./lib/tddspry/django/cases.py:454:38: W602 deprecated form of raising exception
raise TwillAssertionError, 'Match to %r' % what
^
./mydata/admin.py:6:1: W391 blank line at end of file
^
./mydata/forms.py:9:33: W291 trailing whitespace
from django.conf import settings
^
./mydata/forms.py:18:5: E301 expected 1 blank line, found 0
class Meta:
^
./mydata/forms.py:24:1: E302 expected 2 blank lines, found 1
class FormReverse(forms.ModelForm):
^
./mydata/forms.py:33:1: W391 blank line at end of file
^
./mydata/forms.py:33:1: W291 trailing whitespace
^
./mydata/models.py:8:1: E302 expected 2 blank lines, found 1
class Mybio(models.Model):
^
./mydata/models.py:14:52: E251 no spaces around keyword / parameter equals
date_of_birth = models.DateField(verbose_name = "Date of birth")
^
./mydata/models.py:17:5: E303 too many blank lines (2)
def __unicode__(self):
^
./mydata/models.py:20:1: E302 expected 2 blank lines, found 1
class AuthRequest(models.Model):
^
./mydata/models.py:25:1: W391 blank line at end of file
^
./mydata/tests.py:20:1: E302 expected 2 blank lines, found 1
class TestContactsViews(HttpTestCase):
^
./mydata/tests.py:28:67: W291 trailing whitespace
'accounts/login/?next=/accounts/profile/')
^
./mydata/tests.py:50:5: E303 too many blank lines (2)
def test_calendar_logo_present(self):
^
./mydata/tests.py:56:67: W291 trailing whitespace
'accounts/login/?next=/accounts/profile/')
^
./mydata/tests.py:57:1: W291 trailing whitespace
^
./mydata/tests.py:60:1: E302 expected 2 blank lines, found 1
class TestContactsForm(HttpTestCase):
^
./mydata/tests.py:68:67: W291 trailing whitespace
'accounts/login/?next=/accounts/profile/')
^
./mydata/tests.py:78:1: W291 trailing whitespace
^
./mydata/tests.py:84:1: W291 trailing whitespace
^
./mydata/tests.py:90:43: E251 no spaces around keyword / parameter equals
self.ok_(TestFormReverse(reverse = True).fields.keys() == reverse)
^
./mydata/tests.py:92:1: E302 expected 2 blank lines, found 1
class TestTemplatetags(HttpTestCase):
^
./mydata/tests.py:100:37: E231 missing whitespace after ':'
context = Context({"profile":Mybio.objects.get(id=1)})
^
./mydata/tests.py:112:56: W291 trailing whitespace
from django.core.management import call_command
^
./mydata/tests.py:125:1: W391 blank line at end of file
^
./mydata/views.py:19:39: W291 trailing whitespace
profile = get_object_or_404(Mybio,
^
./mydata/views.py:21:1: W291 trailing whitespace
^
./mydata/views.py:26:1: W291 trailing whitespace
^
./mydata/views.py:30:1: W291 trailing whitespace
^
./mydata/views.py:31:5: E303 too many blank lines (2)
return render_to_response("accounts/profile.html", {
^
./mydata/views.py:34:1: W391 blank line at end of file
^
./mydata/widgets.py:10:1: E302 expected 2 blank lines, found 1
class DateTimeWidget(forms.TextInput):
^
./mydata/widgets.py:14:1: W191 indentation contains tabs
'%s/js/jquery-1.4.2.min.js' % settings.MEDIA_PREFIX,
^
./mydata/widgets.py:14:1: E101 indentation contains mixed spaces and tabs
'%s/js/jquery-1.4.2.min.js' % settings.MEDIA_PREFIX,
^
./mydata/widgets.py:15:14: W191 indentation contains tabs
'%s/datepicker/datepicker.js' % settings.MEDIA_PREFIX,
^
./mydata/widgets.py:15:14: E101 indentation contains mixed spaces and tabs
'%s/datepicker/datepicker.js' % settings.MEDIA_PREFIX,
^
./mydata/widgets.py:20:1: W291 trailing whitespace
^
./mydata/widgets.py:23:55: E202 whitespace before ')'
attrs={'class': 'dateField', 'size': '10'}
^
./mydata/management/commands/model_stats.py:4:1: E302 expected 2 blank lines, found 1
class Command(NoArgsCommand):
^
./mydata/management/commands/model_stats.py:6:80: E501 line too long (97 characters)
"""Prints all models in project and how many objects of each model is present in database
^
./mydata/management/commands/model_stats.py:6:98: W291 trailing whitespace
"""Prints all models in project and how many objects of each model is present in database
^
./mydata/management/commands/model_stats.py:9:75: W291 trailing whitespace
print "%s.%s - objects in database %s"%(model._meta.app_label,
^
./mydata/management/commands/model_stats.py:9:51: E225 missing whitespace around operator
print "%s.%s - objects in database %s"%(model._meta.app_label,
^
./mydata/templatetags/admin_urls.py:4:1: W291 trailing whitespace
^
./mydata/templatetags/admin_urls.py:6:1: W291 trailing whitespace
^
./mydata/templatetags/admin_urls.py:7:1: E302 expected 2 blank lines, found 1
@register.tag(name="edit_list")
^
./mydata/templatetags/admin_urls.py:16:1: W291 trailing whitespace
^
./mydata/templatetags/admin_urls.py:17:1: W291 trailing whitespace
^
./mydata/templatetags/admin_urls.py:18:1: W291 trailing whitespace
^
./mydata/templatetags/admin_urls.py:19:1: E303 too many blank lines (3)
class AdminPageUrlNode(template.Node):
^
./mydata/templatetags/admin_urls.py:23:1: W291 trailing whitespace
^
./mydata/templatetags/admin_urls.py:28:50: E225 missing whitespace around operator
return reverse('admin:%s_%s_%s' %(variable._meta.app_label,
^
./req_log/fields.py:14:1: E302 expected 2 blank lines, found 1
class PickleField(models.TextField):
^
./req_log/fields.py:45:1: W391 blank line at end of file
^
./req_log/middleware.py:8:1: E302 expected 2 blank lines, found 0
class RequestLogMiddleware(object):
^
./req_log/middleware.py:13:5: E301 expected 1 blank line, found 0
def process_request(self, request):
^
./req_log/middleware.py:19:40: W291 trailing whitespace
self.log["post"] = request.POST
^
./req_log/middleware.py:21:57: E231 missing whitespace after ','
types.StringTypes),request.META.items()))
^
./req_log/middleware.py:24:40: E231 missing whitespace after ':'
self.log["files"] = {"name":request.FILES.name,
^
./req_log/middleware.py:28:5: E301 expected 1 blank line, found 0
def process_view(self, request, view_func, view_args, view_kwargs):
^
./req_log/middleware.py:32:46: W291 trailing whitespace
self.log["view_kwargs"] = view_kwargs
^
./req_log/middleware.py:33:1: W291 trailing whitespace
^
./req_log/middleware.py:35:32: W291 trailing whitespace
if hasattr(self,"log"):
^
./req_log/middleware.py:35:24: E231 missing whitespace after ','
if hasattr(self,"log"):
^
./req_log/middleware.py:39:1: W391 blank line at end of file
^
./req_log/models.py:8:1: E302 expected 2 blank lines, found 0
class RequestLog(models.Model):
^
./req_log/models.py:10:8: W291 trailing whitespace
"""
^
./req_log/models.py:24:1: W391 blank line at end of file
^
./req_log/tests.py:17:40: W291 trailing whitespace
self.assert_count(RequestLog,2)
^
./req_log/tests.py:17:37: E231 missing whitespace after ','
self.assert_count(RequestLog,2)
^
./req_log/tests.py:18:1: W391 blank line at end of file
^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment