File tree 5 files changed +18
-12
lines changed
5 files changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -52,16 +52,11 @@ repos:
52
52
- id : blacken-docs
53
53
additional_dependencies :
54
54
- black==23.1.0
55
- - repo : https://github.com/asottile/reorder-python-imports
56
- rev : v3.12.0
55
+ - repo : https://github.com/pycqa/isort
56
+ rev : 5.13.2
57
57
hooks :
58
- - id : reorder-python-imports
59
- args :
60
- - --py38-plus
61
- - --application-directories
62
- - .:example:src
63
- - --add-import
64
- - ' from __future__ import annotations'
58
+ - id : isort
59
+ name : isort (python)
65
60
- repo : https://github.com/PyCQA/flake8
66
61
rev : 7.0.0
67
62
hooks :
Original file line number Diff line number Diff line change @@ -48,6 +48,18 @@ Repository = "https://github.com/adamchainz/django-htmx"
48
48
[tool .black ]
49
49
target-version = [' py38' ]
50
50
51
+ [tool .isort ]
52
+ add_imports = [
53
+ " from __future__ import annotations"
54
+ ]
55
+ force_single_line = true
56
+ profile = " black"
57
+ src_paths = [
58
+ " ." ,
59
+ " example" ,
60
+ " src" ,
61
+ ]
62
+
51
63
[tool .pytest .ini_options ]
52
64
addopts = """ \
53
65
--strict-config
Original file line number Diff line number Diff line change 10
10
from django .http .response import HttpResponseBase
11
11
from django .http .response import HttpResponseRedirectBase
12
12
13
-
14
13
HTMX_STOP_POLLING = 286
15
14
16
15
Original file line number Diff line number Diff line change 2
2
3
3
from django .template import Context
4
4
from django .template import Template
5
- from django .test import override_settings
6
5
from django .test import SimpleTestCase
6
+ from django .test import override_settings
7
7
8
8
9
9
class DjangoHtmxScriptTests (SimpleTestCase ):
Original file line number Diff line number Diff line change 1
1
from __future__ import annotations
2
2
3
- from django .test import override_settings
4
3
from django .test import SimpleTestCase
4
+ from django .test import override_settings
5
5
6
6
from django_htmx .jinja import django_htmx_script
7
7
You can’t perform that action at this time.
0 commit comments