File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 3
3
exclude : " .*/vendor/.*"
4
4
repos :
5
5
- repo : https://github.com/adamchainz/django-upgrade
6
- rev : 1.20.0
6
+ rev : 1.23.1
7
7
hooks :
8
8
- id : django-upgrade
9
9
args : [--target-version, "5.1"] # Replace with Django version
10
10
11
11
- repo : https://github.com/astral-sh/ruff-pre-commit
12
- rev : v0.6.3
12
+ rev : v0.9.9
13
13
hooks :
14
14
- id : ruff
15
15
# args: [ --fix, --exit-non-zero-on-fix ]
16
16
17
17
- repo : https://github.com/PyCQA/isort
18
- rev : 5.13.2
18
+ rev : 6.0.1
19
19
hooks :
20
20
- id : isort
21
21
22
22
- repo : https://github.com/psf/black
23
- rev : 24.8 .0
23
+ rev : 25.1 .0
24
24
hooks :
25
25
- id : black
26
26
27
27
- repo : https://github.com/pre-commit/pre-commit-hooks
28
- rev : v4.6 .0
28
+ rev : v5.0 .0
29
29
hooks :
30
30
- id : check-added-large-files
31
31
args : ["--maxkb=128"]
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ class SpatialError(HaystackError):
48
48
49
49
class StatsError (HaystackError ):
50
50
"Raised when incorrect arguments have been provided for stats"
51
+
51
52
pass
52
53
53
54
Original file line number Diff line number Diff line change @@ -16,10 +16,6 @@ def testDefaultAppConfigIsDefined_whenDjangoVersionIsLessThan3_2(self):
16
16
has_default_appconfig_attr = hasattr (haystack , "default_app_config" )
17
17
self .assertTrue (has_default_appconfig_attr )
18
18
19
- @unittest .skipIf (
20
- django .VERSION < (3 , 2 ),
21
- "default_app_config should be used in versions prior to django 3.2." ,
22
- )
23
19
def testDefaultAppConfigIsDefined_whenDjangoVersionIsMoreThan3_2 (self ):
24
20
has_default_appconfig_attr = hasattr (haystack , "default_app_config" )
25
21
self .assertFalse (has_default_appconfig_attr )
You can’t perform that action at this time.
0 commit comments