File tree Expand file tree Collapse file tree 3 files changed +16
-15
lines changed Expand file tree Collapse file tree 3 files changed +16
-15
lines changed Original file line number Diff line number Diff line change 1
1
exclude : " .yarn/|yarn.lock|\\ .min\\ .(css|js)$"
2
2
repos :
3
3
- repo : https://github.com/pre-commit/pre-commit-hooks
4
- rev : v5 .0.0
4
+ rev : v6 .0.0
5
5
hooks :
6
6
- id : check-added-large-files
7
7
- id : check-builtin-literals
@@ -14,26 +14,27 @@ repos:
14
14
- id : mixed-line-ending
15
15
- id : trailing-whitespace
16
16
- repo : https://github.com/adamchainz/django-upgrade
17
- rev : 1.22.2
17
+ rev : 1.25.0
18
18
hooks :
19
19
- id : django-upgrade
20
20
args : [--target-version, "3.2"]
21
21
- repo : https://github.com/astral-sh/ruff-pre-commit
22
- rev : " v0.9.3 "
22
+ rev : " v0.12.10 "
23
23
hooks :
24
24
- id : ruff
25
+ args : [--unsafe-fixes]
25
26
- id : ruff-format
26
27
- repo : https://github.com/biomejs/pre-commit
27
- rev : " v0.6.1 "
28
+ rev : " v2.2.2 "
28
29
hooks :
29
30
- id : biome-check
30
- additional_dependencies :
["@biomejs/[email protected] "]
31
31
args : [--unsafe]
32
+ verbose : true
32
33
- repo : https://github.com/tox-dev/pyproject-fmt
33
- rev : v2.5 .0
34
+ rev : v2.6 .0
34
35
hooks :
35
36
- id : pyproject-fmt
36
37
- repo : https://github.com/abravalheri/validate-pyproject
37
- rev : v0.23
38
+ rev : v0.24.1
38
39
hooks :
39
40
- id : validate-pyproject
Original file line number Diff line number Diff line change 1
1
{
2
- "$schema" : " https://biomejs.dev/schemas/1.9.4/schema.json" ,
3
- "organizeImports" : {
4
- "enabled" : false
5
- },
2
+ "$schema" : " https://biomejs.dev/schemas/2.2.2/schema.json" ,
3
+ "assist" : { "actions" : { "source" : { "organizeImports" : " off" } } },
6
4
"formatter" : {
7
5
"enabled" : true ,
8
6
"indentStyle" : " space" ,
15
13
"a11y" : {
16
14
"noSvgWithoutTitle" : " off"
17
15
},
16
+ "complexity" : {
17
+ "noImportantStyles" : " off"
18
+ },
18
19
"correctness" : {
19
20
"noUndeclaredVariables" : " error" ,
20
21
"noUnusedImports" : " error" ,
21
22
"noUnusedVariables" : " error" ,
22
- "useArrayLiterals" : " error" ,
23
23
"useHookAtTopLevel" : " error"
24
24
},
25
25
"security" : {
26
26
"noDangerouslySetInnerHtml" : " warn"
27
27
},
28
28
"style" : {
29
29
"noParameterAssign" : " off" ,
30
- "useForOf" : " warn"
30
+ "useForOf" : " warn" ,
31
+ "useArrayLiterals" : " error"
31
32
},
32
33
"suspicious" : {
33
34
"noArrayIndexKey" : " warn" ,
Original file line number Diff line number Diff line change 1
1
import pytest
2
- from django .forms import modelform_factory
2
+ from django .forms import CharField , modelform_factory
3
3
from django .utils .translation import override
4
4
5
5
from testapp .custom_fields import CustomPathTextField
@@ -202,7 +202,6 @@ def test_custom_path_field_form_generation():
202
202
203
203
# Form field is based on standard Django form fields - these assertions should pass
204
204
# Django maps TextField to Textarea widget by default
205
- from django .forms import CharField
206
205
207
206
assert isinstance (field_en , CharField )
208
207
assert field_en .widget .__class__ .__name__ == "Textarea"
You can’t perform that action at this time.
0 commit comments