Skip to content

Commit f096c81

Browse files
committed
Update pre-commit hooks
1 parent 0012af3 commit f096c81

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,26 @@ repos:
1414
- id: mixed-line-ending
1515
- id: trailing-whitespace
1616
- repo: https://github.com/adamchainz/django-upgrade
17-
rev: 1.22.1
17+
rev: 1.25.0
1818
hooks:
1919
- id: django-upgrade
2020
args: [--target-version, "3.2"]
2121
- repo: https://github.com/astral-sh/ruff-pre-commit
22-
rev: "v0.7.0"
22+
rev: "v0.12.4"
2323
hooks:
2424
- id: ruff
2525
args: [--unsafe-fixes]
2626
- id: ruff-format
2727
- repo: https://github.com/biomejs/pre-commit
28-
rev: "v0.5.0"
28+
rev: "v2.1.2"
2929
hooks:
3030
- id: biome-check
31-
additional_dependencies: ["@biomejs/[email protected]"]
3231
args: [--unsafe]
3332
- repo: https://github.com/tox-dev/pyproject-fmt
34-
rev: 2.4.3
33+
rev: v2.6.0
3534
hooks:
3635
- id: pyproject-fmt
3736
- repo: https://github.com/abravalheri/validate-pyproject
38-
rev: v0.21
37+
rev: v0.24.1
3938
hooks:
4039
- id: validate-pyproject

biome.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3-
"organizeImports": {
4-
"enabled": false
5-
},
2+
"$schema": "https://biomejs.dev/schemas/2.1.2/schema.json",
3+
"assist": { "actions": { "source": { "organizeImports": "off" } } },
64
"formatter": {
75
"enabled": true,
86
"indentStyle": "space",
@@ -19,15 +17,15 @@
1917
"noUndeclaredVariables": "error",
2018
"noUnusedImports": "error",
2119
"noUnusedVariables": "error",
22-
"useArrayLiterals": "error",
2320
"useHookAtTopLevel": "error"
2421
},
2522
"security": {
2623
"noDangerouslySetInnerHtml": "warn"
2724
},
2825
"style": {
2926
"noParameterAssign": "off",
30-
"useForOf": "warn"
27+
"useForOf": "warn",
28+
"useArrayLiterals": "error"
3129
},
3230
"suspicious": {
3331
"noArrayIndexKey": "warn",

0 commit comments

Comments
 (0)