From 7eb6543d8b54300140743c05cdaacfb55aa689e4 Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Sat, 16 Mar 2019 10:40:56 +0100 Subject: [PATCH] Minor clenaup --- dpaste/highlight.py | 1 - dpaste/models.py | 1 - dpaste/views.py | 1 - setup.cfg | 6 +++--- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/dpaste/highlight.py b/dpaste/highlight.py index 1d906aa..a91870e 100644 --- a/dpaste/highlight.py +++ b/dpaste/highlight.py @@ -5,7 +5,6 @@ from django.template.defaultfilters import escape, linebreaksbr from django.template.loader import render_to_string from django.utils.safestring import mark_safe from django.utils.translation import ugettext_lazy as _ - from pygments import highlight from pygments.formatters.html import HtmlFormatter from pygments.lexers import get_lexer_by_name diff --git a/dpaste/models.py b/dpaste/models.py index c87c75e..eb1897c 100644 --- a/dpaste/models.py +++ b/dpaste/models.py @@ -5,7 +5,6 @@ from django.apps import apps from django.db import models from django.urls import reverse from django.utils.translation import ugettext_lazy as _ - from six import python_2_unicode_compatible from dpaste import highlight diff --git a/dpaste/views.py b/dpaste/views.py index d7c4eff..fd0c0e5 100644 --- a/dpaste/views.py +++ b/dpaste/views.py @@ -13,7 +13,6 @@ from django.views.defaults import server_error as django_server_error from django.views.generic import FormView from django.views.generic.base import TemplateView, View from django.views.generic.detail import DetailView - from pygments.lexers import get_lexer_for_filename from pygments.util import ClassNotFound diff --git a/setup.cfg b/setup.cfg index fd67330..66dee60 100644 --- a/setup.cfg +++ b/setup.cfg @@ -47,10 +47,10 @@ install_requires = coverage [isort] -default_section = THIRDPARTY known_first_party = dpaste -known_django = django -sections = FUTURE,STDLIB,DJANGO,THIRDPARTY,FIRSTPARTY,LOCALFOLDER +default_section = THIRDPARTY +sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER +multi_line_output = 0 skip = migrations [coverage:run]