Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
isort with line length 120
  • Loading branch information
Andrey Fedoseev committed Sep 20, 2015
1 parent f26cded commit 5477726
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 21 deletions.
2 changes: 2 additions & 0 deletions .isort.cfg
@@ -0,0 +1,2 @@
[settings]
line_length=120
2 changes: 2 additions & 0 deletions setup.cfg
Expand Up @@ -4,3 +4,5 @@ DJANGO_SETTINGS_MODULE=static_precompiler.tests.django_settings
[flake8]
exclude = build, .git, static_precompiler/migrations/*, static_precompiler/south_migrations/*
max-line-length = 120

[isort]
3 changes: 1 addition & 2 deletions static_precompiler/compilers/base.py
Expand Up @@ -9,8 +9,7 @@
from django.utils.functional import lazy

from static_precompiler.models import Dependency
from static_precompiler.settings import (DISABLE_AUTO_COMPILE, OUTPUT_DIR,
ROOT, STATIC_ROOT)
from static_precompiler.settings import DISABLE_AUTO_COMPILE, OUTPUT_DIR, ROOT, STATIC_ROOT
from static_precompiler.utils import get_mtime, normalize_path

logger = logging.getLogger("static_precompiler")
Expand Down
3 changes: 1 addition & 2 deletions static_precompiler/templatetags/coffeescript.py
@@ -1,8 +1,7 @@
from django.template.base import Library

from static_precompiler.compilers import CoffeeScript
from static_precompiler.templatetags.compile_static import \
register_compiler_tags
from static_precompiler.templatetags.compile_static import register_compiler_tags

register = Library()
compiler = CoffeeScript()
Expand Down
6 changes: 2 additions & 4 deletions static_precompiler/templatetags/compile_static.py
Expand Up @@ -4,11 +4,9 @@
from django.templatetags.static import static
from django.utils import six

from static_precompiler.settings import (CACHE_TIMEOUT, PREPEND_STATIC_URL,
USE_CACHE)
from static_precompiler.settings import CACHE_TIMEOUT, PREPEND_STATIC_URL, USE_CACHE
from static_precompiler.templatetags.base import container_tag
from static_precompiler.utils import (compile_static, get_cache, get_cache_key,
get_compiler_by_name, get_hexdigest)
from static_precompiler.utils import compile_static, get_cache, get_cache_key, get_compiler_by_name, get_hexdigest

register = Library()

Expand Down
3 changes: 1 addition & 2 deletions static_precompiler/templatetags/less.py
@@ -1,8 +1,7 @@
from django.template.base import Library

from static_precompiler.compilers import LESS
from static_precompiler.templatetags.compile_static import \
register_compiler_tags
from static_precompiler.templatetags.compile_static import register_compiler_tags

register = Library()
compiler = LESS()
Expand Down
3 changes: 1 addition & 2 deletions static_precompiler/templatetags/sass.py
@@ -1,8 +1,7 @@
from django.template.base import Library

from static_precompiler.compilers import SASS
from static_precompiler.templatetags.compile_static import \
register_compiler_tags
from static_precompiler.templatetags.compile_static import register_compiler_tags

register = Library()
compiler = SASS()
Expand Down
3 changes: 1 addition & 2 deletions static_precompiler/templatetags/scss.py
@@ -1,8 +1,7 @@
from django.template.base import Library

from static_precompiler.compilers import SCSS
from static_precompiler.templatetags.compile_static import \
register_compiler_tags
from static_precompiler.templatetags.compile_static import register_compiler_tags

register = Library()
compiler = SCSS()
Expand Down
3 changes: 1 addition & 2 deletions static_precompiler/tests/test_management.py
Expand Up @@ -3,8 +3,7 @@
import pytest
from django.core.management import call_command

from static_precompiler.management.commands.compilestatic import \
get_scanned_dirs
from static_precompiler.management.commands.compilestatic import get_scanned_dirs
from static_precompiler.settings import OUTPUT_DIR, ROOT, STATIC_ROOT


Expand Down
4 changes: 1 addition & 3 deletions static_precompiler/tests/test_utils.py
Expand Up @@ -5,9 +5,7 @@
from static_precompiler.compilers import CoffeeScript
from static_precompiler.exceptions import CompilerNotFound, UnsupportedFile
# noinspection PyProtectedMember
from static_precompiler.utils import (_build_compilers, compile_static,
compile_static_lazy,
get_compiler_by_name,
from static_precompiler.utils import (_build_compilers, compile_static, compile_static_lazy, get_compiler_by_name,
get_compiler_by_path)


Expand Down
3 changes: 1 addition & 2 deletions static_precompiler/utils.py
Expand Up @@ -12,8 +12,7 @@
from django.utils.encoding import smart_bytes, smart_str

from static_precompiler.exceptions import CompilerNotFound, UnsupportedFile
from static_precompiler.settings import (CACHE_NAME, COMPILERS, MTIME_DELAY,
POSIX_COMPATIBLE, STATIC_URL)
from static_precompiler.settings import CACHE_NAME, COMPILERS, MTIME_DELAY, POSIX_COMPATIBLE, STATIC_URL

try:
from importlib import import_module
Expand Down

0 comments on commit 5477726

Please sign in to comment.