From f351b71d6a6924e38b812794e753f50f48212c5b Mon Sep 17 00:00:00 2001 From: Felix Date: Thu, 20 Dec 2018 14:53:25 +0100 Subject: [PATCH] Fix flake8 --- django_migration_linter/cache.py | 3 ++- django_migration_linter/migration_linter.py | 6 ++++-- django_migration_linter/utils.py | 3 --- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/django_migration_linter/cache.py b/django_migration_linter/cache.py index 0d3f524..46e3a63 100644 --- a/django_migration_linter/cache.py +++ b/django_migration_linter/cache.py @@ -23,7 +23,8 @@ class Cache(dict): def __init__(self, django_folder, cache_path): self.django_folder = django_folder project_name = split_path(django_folder)[-2] - self.filename = os.path.join(cache_path, '{0}.pickle'.format(project_name)) + self.filename = \ + os.path.join(cache_path, '{0}.pickle'.format(project_name)) if not os.path.exists(os.path.dirname(self.filename)): os.makedirs(os.path.dirname(self.filename)) diff --git a/django_migration_linter/migration_linter.py b/django_migration_linter/migration_linter.py index 66fa34c..a5ac985 100644 --- a/django_migration_linter/migration_linter.py +++ b/django_migration_linter/migration_linter.py @@ -20,7 +20,8 @@ from subprocess import Popen, PIPE import sys from django_migration_linter.cache import Cache -from django_migration_linter.constants import DEFAULT_CACHE_PATH, MIGRATION_FOLDER_NAME +from django_migration_linter.constants import DEFAULT_CACHE_PATH, \ + MIGRATION_FOLDER_NAME from django_migration_linter.utils import split_migration_path from . import utils from .sql_analyser import analyse_sql_statements @@ -289,7 +290,8 @@ def _main(): cache_group.add_argument( '--cache-path', type=str, - help='specify a directory that should be used to store cache-files in.') + help='specify a directory that should be used to' + 'store cache-files in.') cache_group.add_argument( '--no-cache', action='store_true', diff --git a/django_migration_linter/utils.py b/django_migration_linter/utils.py index 8e26011..355df5f 100644 --- a/django_migration_linter/utils.py +++ b/django_migration_linter/utils.py @@ -74,6 +74,3 @@ def compose_migration_path(django_folder, app_name, migration): def clean_bytes_to_str(byte_input): return byte_input.decode('utf-8').strip() - - -