Skip to content

Commit

Permalink
Change target version of Black to Python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane committed Dec 15, 2023
1 parent 8431541 commit e46c38f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
7 changes: 2 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
[build-system]
requires = [
"setuptools>=42",
"wheel"
]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"

[tool.black]
target-version = ["py39"]
target-version = ["py311"]
line_length = 88
1 change: 0 additions & 1 deletion testproj/testproj/testapp/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@


class Migration(migrations.Migration):

initial = True

dependencies = []
Expand Down
4 changes: 1 addition & 3 deletions webstack_django_sorting/templatetags/sorting_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ def render(self, context):

queryset = self.queryset_var.resolve(context)
order_by = common.get_order_by_from_request(context["request"])
null_ordering = common.get_null_ordering(
context["request"], self.null_ordering
)
null_ordering = common.get_null_ordering(context["request"], self.null_ordering)

try:
context[key] = common.sort_queryset(queryset, order_by, null_ordering)
Expand Down

0 comments on commit e46c38f

Please sign in to comment.