Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@
"initializeCommand": "sh .devcontainer/initialize-command.sh",
"onCreateCommand": "sh .devcontainer/on-create-command.sh",
"postStartCommand": "sh .devcontainer/post-start-command.sh"
// Devcontainer context hash (do not manually edit this, it's managed by a pre-commit hook): e8f8ae22 # spellchecker:disable-line
// Devcontainer context hash (do not manually edit this, it's managed by a pre-commit hook): 323225d7 # spellchecker:disable-line
}
24 changes: 21 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,16 @@ repos:

# Reformatting (should generally come before any file format or other checks, because reformatting can change things)
- repo: https://github.com/crate-ci/typos
rev: 0f0ccba9ed1df83948f0c15026e4f5ccfce46109 # frozen: v1.32.0
rev: 392b78fe18a52790c53f42456e46124f77346842 # frozen: v1.34.0
hooks:
- id: typos
exclude:
|
(?x)^(
.*\.min.js|
.*\.min.css|
.*\.umd.js|
)$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # frozen: v5.0.0
hooks:
Expand Down Expand Up @@ -77,17 +84,21 @@ repos:
.*devcontainer.json|
.*pyrightconfig.json|
.*tsconfig.json|
.*biome.jsonc|
.*/vendor_files/.*|
)$
args: [--autofix, --no-sort-keys]

- repo: https://github.com/biomejs/pre-commit
rev: 748e40d32e076a6aaaf3353a2564c8fe43764f79 # frozen: v2.0.0-beta.1
rev: a450e9c04887b1305951c298db5999cd30155f74 # frozen: v2.1.1
hooks:
- id: biome-check
# exclude generated files from codegen and strawberry
exclude: |
(?x)^(
.*generated/graphql.ts|
.*/schema.graphql|
.*pyrightconfig\.json|
)$

- repo: https://github.com/pre-commit/mirrors-prettier # TODO: switch to a different approach...this was archived in 2024
Expand All @@ -102,10 +113,17 @@ repos:
.*devcontainer.json|
.*pyrightconfig.json|
.*tsconfig.json|
.*/__snapshots__/.*|
.*.min.js|
.*.min.css|
.*.umd.js|
.*.yaml|
.*.yml|
.*.md|
.*.jsonc|
.*/vendor_files/.*|
.*/schema.graphql|
.*generated/graphql.ts|
)$
files: (.*.json)|(.*.ts)|(.*.jsx)|(.*.tsx)|(.*.yaml)|(.*.yml)|(.*.md)|(.*.html)|(.*.css)|(.*.scss)|(.*.less)|(.*.vue)|(.*.graphql)|(.*.gql)

Expand Down Expand Up @@ -204,7 +222,7 @@ repos:
description: Runs hadolint to lint Dockerfiles

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 24e02b24b8ab2b7c76225602d13fa60e12d114e6 # frozen: v0.11.9
rev: 3d44372123ca5e8617fdb65d9f11facd159b9e95 # frozen: v0.12.3
hooks:
- id: ruff
name: ruff-src
Expand Down
8 changes: 0 additions & 8 deletions biome.json

This file was deleted.

16 changes: 16 additions & 0 deletions biome.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"formatter": {
"enabled": false,
Copy link

Copilot AI Jul 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Trailing comma after the last property in the formatter object is unnecessary and inconsistent with the linter object below.

Suggested change
"enabled": false,
"enabled": false

Copilot uses AI. Check for mistakes.
},
"linter": {
"enabled": false,
},
"files": {
"includes": [
"**",
"!template/template/biome.jsonc",
"!template/biome.jsonc",
"!**/*.css", // still too many false positives, so we exclude CSS files
],
},
}
4 changes: 2 additions & 2 deletions extensions/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ def hook(self, context: dict[Any, Any]) -> dict[Any, Any]:
context["copier_version"] = "9.7.1"
context["copier_templates_extension_version"] = "0.3.1"
#######
context["pnpm_version"] = "10.12.4"
context["pnpm_version"] = "10.13.1"
# These are duplicated in the pyproject.toml of this repository
context["pyright_version"] = "1.1.402"
context["pyright_version"] = "1.1.403"
context["pytest_version"] = "8.4.0"
context["pytest_randomly_version"] = "3.16.0"
context["pytest_cov_version"] = "6.2.1"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dependencies = [
"pytest>=8.4.0",
"pytest-cov>=6.2.1",
"pytest-randomly>=3.16.0",
"pyright[nodejs]>=1.1.402",
"pyright[nodejs]>=1.1.403",
"copier>=9.7.1",
"copier-templates-extensions>=0.3.1"
]
1 change: 1 addition & 0 deletions ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ ignore = [
"TD002", # Adding author names to TODOs erodes shared ownership of codebase. Git history provides information about who originally created the TODO if that information is vitally needed
"TD003", # Up to the author's judgement whether a TODO requires a link to an issue or not
"TID252", # Sometimes it makes sense to use relative imports, that's a judgement call for us, not ruff
"TC006", # Adding quotes around classes unnecessarily confuses the IDE for automatic refactoring
]

# Allow fix for all enabled rules (when `--fix`) is provided.
Expand Down
1 change: 0 additions & 1 deletion template/biome.json

This file was deleted.

1 change: 1 addition & 0 deletions template/biome.jsonc
1 change: 0 additions & 1 deletion template/template/biome.json

This file was deleted.

1 change: 1 addition & 0 deletions template/template/biome.jsonc
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.