Skip to content

Commit c5ac12e

Browse files
[pre-commit.ci] pre-commit autoupdate (#146)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/biomejs/pre-commit: v2.0.0-beta.5 → v2.0.2](biomejs/pre-commit@v2.0.0-beta.5...v2.0.2) - [github.com/astral-sh/ruff-pre-commit: v0.11.13 → v0.12.0](astral-sh/ruff-pre-commit@v0.11.13...v0.12.0) * v2 biomejs Signed-off-by: Lukas Heumos <lukas.heumos@posteo.net> --------- Signed-off-by: Lukas Heumos <lukas.heumos@posteo.net> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Lukas Heumos <lukas.heumos@posteo.net>
1 parent ec63bb6 commit c5ac12e

3 files changed

Lines changed: 20 additions & 3 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ default_stages:
77
minimum_pre_commit_version: 2.16.0
88
repos:
99
- repo: https://github.com/biomejs/pre-commit
10-
rev: v2.0.0-beta.5
10+
rev: v2.0.0
1111
hooks:
1212
- id: biome-format
1313
exclude: ^\.cruft\.json$ # inconsistent indentation with cruft - file never to be modified manually.
@@ -16,7 +16,7 @@ repos:
1616
hooks:
1717
- id: pyproject-fmt
1818
- repo: https://github.com/astral-sh/ruff-pre-commit
19-
rev: v0.11.13
19+
rev: v0.12.0
2020
hooks:
2121
- id: ruff
2222
types_or: [python, pyi, jupyter]

biome.jsonc

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.0.0-beta.1/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.0.6/schema.json",
33
"formatter": {
44
"useEditorconfig": true,
55
},
@@ -17,4 +17,20 @@
1717
},
1818
},
1919
],
20+
"linter": {
21+
"rules": {
22+
"style": {
23+
"noParameterAssign": "error",
24+
"useAsConstAssertion": "error",
25+
"useDefaultParameterLast": "error",
26+
"useEnumInitializers": "error",
27+
"useSelfClosingElements": "error",
28+
"useSingleVarDeclarator": "error",
29+
"noUnusedTemplateLiteral": "error",
30+
"useNumberNamespace": "error",
31+
"noInferrableTypes": "error",
32+
"noUselessElse": "error",
33+
},
34+
},
35+
},
2036
}

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ lint.ignore = [
143143
"E501", # line too long -> we accept long comment lines; formatter gets rid of long code lines
144144
"E731", # Do not assign a lambda expression, use a def -> lambda expression assignments are convenient
145145
"E741", # allow I, O, l as variable names -> I is the identity matrix
146+
"PLC0415", # `import` should be at the top-level of a file
146147
"PLR0912", # Too many branches
147148
"PLR0913", # Too many arguments in function def
148149
"PLR0915", # Too many statements

0 commit comments

Comments
 (0)