Skip to content
Draft
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
6 changes: 6 additions & 0 deletions .dprint.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
},
"json": {
},
// Match the repo-wide 120 line-length set in .editorconfig and ruff.toml,
// otherwise dprint's bundled ruff would reformat Python files to its
// default and fight with `mise run ruff-fmt`.
"ruff": {
"lineLength": 120,
},
"malva": {
},
"markdown": {
Expand Down
33 changes: 33 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ max_line_length = off
[*.wit]
max_line_length = 300

# License files use the canonical upstream formatting (centred headers, odd
# indent widths, etc.) — leave them alone.
[LICENSE-*]
indent_size = unset
indent_style = unset
max_line_length = unset
trim_trailing_whitespace = unset

# Binary file formats that should be ignored
[*.onnx]
charset = unset
Expand All @@ -30,3 +38,28 @@ indent_size = unset
indent_style = unset
trim_trailing_whitespace = unset
max_line_length = unset

# Upstream WIT packages fetched verbatim — their formatting is whatever the
# upstream repos use and shouldn't be normalised on our side.
[generated/specs/wit/deps/wasi-*/**]
charset = unset
end_of_line = unset
insert_final_newline = unset
indent_size = unset
indent_style = unset
trim_trailing_whitespace = unset
max_line_length = unset

# openapi-python-client emits framework-boilerplate docstrings (e.g. the
# "errors.UnexpectedStatus: If the server returns an undocumented status code
# …" line in every operation) that exceed 120 chars. ruff format doesn't
# reflow plain-text docstrings, so we can't fix this short of patching the
# generator's templates — drop the line-length check for this tree.
[generated/python-rest/**]
max_line_length = unset

# Same story for openapi2zig: a handful of helpers (SSE parsing, query-string
# encoding) emit lines that exceed 120 chars and `zig fmt` won't reflow them.
# The generator is the source of truth; we don't edit its output by hand.
[generated/zig-rest/**]
max_line_length = unset
4 changes: 4 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ jobs:
mise install
env:
GITHUB_TOKEN: ${{ github.token }}
# GitHub release downloads occasionally take longer than mise's
# default 30s HTTP timeout; bump it so transient network slowness
# doesn't fail the whole `mise install` step.
MISE_HTTP_TIMEOUT: "120"

- name: Run checkers
run: |
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ jobs:
mise install
env:
GITHUB_TOKEN: ${{ github.token }}
# Match check.yml: bump mise's 30s HTTP timeout so GitHub-release
# downloads don't fail the install on transient slowness.
MISE_HTTP_TIMEOUT: "120"

- name: Fetch MNIST model
run: mise run fetch-mnist-rclone
Expand Down
Loading
Loading