From 9d30412a5ad1c72b3d319b4c2bceacb53a0ff1da Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Fri, 19 Sep 2014 12:31:15 -0400 Subject: [PATCH] Fixed some flake8 errors. Originally I added migrations to flake8 exclude because of long lines in migration files, but there are other directories named migrations we do want to check. We are not warning on line lengths yet anyway. --- setup.cfg | 2 +- tests/migrations/test_executor.py | 4 ++-- .../test_migrations_backwards_deps_1/0001_initial.py | 2 +- .../test_migrations_backwards_deps_1/0002_second.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/setup.cfg b/setup.cfg index 363697fda8..bfbecb1fc2 100644 --- a/setup.cfg +++ b/setup.cfg @@ -3,7 +3,7 @@ doc_files = docs extras AUTHORS INSTALL LICENSE README.rst install-script = scripts/rpm-install.sh [flake8] -exclude=build,.git,./django/utils/dictconfig.py,./django/utils/unittest.py,./django/utils/lru_cache.py,./django/utils/six.py,./django/conf/app_template/*,./django/dispatch/weakref_backports.py,*/migrations/* +exclude=build,.git,./django/utils/dictconfig.py,./django/utils/unittest.py,./django/utils/lru_cache.py,./django/utils/six.py,./django/conf/app_template/*,./django/dispatch/weakref_backports.py ignore=E123,E128,E265,E501,W601 max-line-length = 119 diff --git a/tests/migrations/test_executor.py b/tests/migrations/test_executor.py index 4631b80577..469f00f705 100644 --- a/tests/migrations/test_executor.py +++ b/tests/migrations/test_executor.py @@ -234,8 +234,8 @@ class ExecutorTests(MigrationTestBase): @override_settings( MIGRATION_MODULES={ - "migrations": "migrations.test_migrations_backwards_deps_1", - "migrations2": "migrations2.test_migrations_backwards_deps_2", + "migrations": "migrations.test_migrations_backwards_deps_1", + "migrations2": "migrations2.test_migrations_backwards_deps_2", }, ) def test_backwards_deps(self): diff --git a/tests/migrations/test_migrations_backwards_deps_1/0001_initial.py b/tests/migrations/test_migrations_backwards_deps_1/0001_initial.py index 8e1925b472..cb6f0891fd 100644 --- a/tests/migrations/test_migrations_backwards_deps_1/0001_initial.py +++ b/tests/migrations/test_migrations_backwards_deps_1/0001_initial.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals -from django.db import migrations, models +from django.db import migrations class Migration(migrations.Migration): diff --git a/tests/migrations/test_migrations_backwards_deps_1/0002_second.py b/tests/migrations/test_migrations_backwards_deps_1/0002_second.py index 512f32e97c..41d6684f9d 100644 --- a/tests/migrations/test_migrations_backwards_deps_1/0002_second.py +++ b/tests/migrations/test_migrations_backwards_deps_1/0002_second.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals -from django.db import migrations, models +from django.db import migrations class Migration(migrations.Migration):