Skip to content

Commit 74cb549

Browse files
authored
Update pre-commit hooks (#2152)
Also, go back to the recommended ruleset of biome instead of raising the level of rules; those were all introduced by automatically migrating the biome configuration, not by explicit choice.
1 parent c217334 commit 74cb549

File tree

3 files changed

+8
-33
lines changed

3 files changed

+8
-33
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repos:
1010
- id: file-contents-sorter
1111
files: docs/spelling_wordlist.txt
1212
- repo: https://github.com/pycqa/doc8
13-
rev: v1.1.2
13+
rev: v2.0.0
1414
hooks:
1515
- id: doc8
1616
- repo: https://github.com/adamchainz/django-upgrade
@@ -29,12 +29,12 @@ repos:
2929
- id: rst-backticks
3030
- id: rst-directive-colons
3131
- repo: https://github.com/biomejs/pre-commit
32-
rev: v2.0.0-beta.5
32+
rev: v2.0.6
3333
hooks:
3434
- id: biome-check
3535
verbose: true
3636
- repo: https://github.com/astral-sh/ruff-pre-commit
37-
rev: 'v0.11.12'
37+
rev: 'v0.12.2'
3838
hooks:
3939
- id: ruff
4040
args: [--fix, --exit-non-zero-on-fix]

biome.json

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.0.0-beta.5/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
33
"formatter": {
44
"enabled": true,
55
"useEditorconfig": true
@@ -15,34 +15,8 @@
1515
"enabled": true,
1616
"rules": {
1717
"recommended": true,
18-
"style": {
19-
"useLiteralEnumMembers": "error",
20-
"noCommaOperator": "error",
21-
"useNodejsImportProtocol": "error",
22-
"useAsConstAssertion": "error",
23-
"useEnumInitializers": "error",
24-
"useSelfClosingElements": "error",
25-
"useConst": "error",
26-
"useSingleVarDeclarator": "error",
27-
"noUnusedTemplateLiteral": "error",
28-
"useNumberNamespace": "error",
29-
"noInferrableTypes": "error",
30-
"useExponentiationOperator": "error",
31-
"useTemplate": "error",
32-
"noParameterAssign": "error",
33-
"noNonNullAssertion": "error",
34-
"useDefaultParameterLast": "error",
35-
"noArguments": "error",
36-
"useImportType": "error",
37-
"useExportType": "error",
38-
"noUselessElse": "error",
39-
"useShorthandFunctionType": "error"
40-
},
4118
"suspicious": {
4219
"noDocumentCookie": "off"
43-
},
44-
"complexity": {
45-
"useNumericLiterals": "error"
4620
}
4721
}
4822
},

debug_toolbar/static/debug_toolbar/css/toolbar.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
/* Variable definitions */
22
:root {
33
/* Font families are the same as in Django admin/css/base.css */
4-
--djdt-font-family-primary: "Segoe UI", system-ui, Roboto, "Helvetica Neue",
5-
Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
6-
"Segoe UI Symbol", "Noto Color Emoji";
4+
--djdt-font-family-primary:
5+
"Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif,
6+
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
7+
"Noto Color Emoji";
78
--djdt-font-family-monospace:
89
ui-monospace, Menlo, Monaco, "Cascadia Mono",
910
"Segoe UI Mono", "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace",

0 commit comments

Comments
 (0)