-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
80 lines (69 loc) · 2.64 KB
/
Copy path.editorconfig
File metadata and controls
80 lines (69 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
root = true
[*]
end_of_line = lf
insert_final_newline = true
indent_size = 2
indent_style = space
max_line_length = 120
trim_trailing_whitespace = true
# Markdown files can have flexible indentation for lists
[*.md]
indent_size = unset
# OPA/Rego: `conftest fmt` (opa fmt) indents with tabs and isn't configurable, so
# its canonical formatting needs tabs, not the repo's space default.
[*.rego]
indent_style = tab
indent_size = unset
# 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
end_of_line = unset
insert_final_newline = unset
indent_size = unset
indent_style = unset
trim_trailing_whitespace = unset
max_line_length = unset
# License files use the canonical upstream formatting.
[LICENSE-*]
indent_size = unset
indent_style = unset
max_line_length = unset
trim_trailing_whitespace = 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, and continuation lines inside the generated function signatures use 3-space indentation that
# clashes with the workspace `indent_size = 2`. ruff format doesn't reflow plain-text docstrings or
# re-indent the templates, so we drop both checks for this tree.
[generated/python-rest/**]
indent_size = unset
max_line_length = unset
# datamodel-code-generator renders each Pydantic field's `description=` from the schemars `description`
# (i.e. the source enum's `///` doc comment) as a single string literal -- `\n`-joined, no implicit
# concatenation. ruff format won't break string literals, so any multi-paragraph Rust doc comment on
# `ClientMessage` / `ServerMessage` blows past 120 chars in the generated Python.
[generated/python-ws/**]
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
[config/upstream-cache/data.toml]
max_line_length = 200