Skip to content

Commit

Permalink
added isort config to setup to stop it from clashing with black
Browse files Browse the repository at this point in the history
  • Loading branch information
pj-simpson committed Dec 20, 2020
1 parent 6980217 commit fda1922
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
8 changes: 7 additions & 1 deletion blog/urls.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
from django.urls import path

from .views import *
from .views import (
post_create_view,
post_detail_view,
post_list_view,
post_list_view_by_tag,
post_update_view,
)

urlpatterns = [
path("", post_list_view, name="post_list"),
Expand Down
9 changes: 8 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
[flake8]
max-line-length = 119
exclude = migrations,env,tests
exclude = migrations,env,tests
[isort]
multi_line_output = 3
include_trailing_comma = True
force_grid_wrap = 0
use_parentheses = True
ensure_newline_before_comments = True
line_length = 88

0 comments on commit fda1922

Please sign in to comment.