@oddessentials/repo-standards 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/standards.csharp-dotnet.azure-devops.json +2 -8
- package/dist/config/standards.csharp-dotnet.github-actions.json +2 -8
- package/dist/config/standards.csharp-dotnet.json +2 -8
- package/dist/config/standards.json +29 -39
- package/dist/config/standards.python.azure-devops.json +13 -21
- package/dist/config/standards.python.github-actions.json +13 -21
- package/dist/config/standards.python.json +13 -21
- package/dist/config/standards.rust.azure-devops.json +1 -1
- package/dist/config/standards.rust.github-actions.json +1 -1
- package/dist/config/standards.rust.json +1 -1
- package/dist/config/standards.typescript-js.azure-devops.json +13 -9
- package/dist/config/standards.typescript-js.github-actions.json +13 -9
- package/dist/config/standards.typescript-js.json +13 -9
- package/package.json +1 -1
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"commands": [
|
|
40
40
|
"bazel build //... --aspects=@rules_dotnet//dotnet:analyzers.bzl%analyzer_aspect"
|
|
41
41
|
],
|
|
42
|
-
"notes": "Use rules_dotnet analyzer aspects for Roslyn-based linting
|
|
42
|
+
"notes": "Example only; actual targets are repo-defined. Use rules_dotnet analyzer aspects for Roslyn-based linting."
|
|
43
43
|
},
|
|
44
44
|
"exampleConfigFiles": [
|
|
45
45
|
".editorconfig",
|
|
@@ -56,9 +56,6 @@
|
|
|
56
56
|
"requiredFiles": [
|
|
57
57
|
".editorconfig"
|
|
58
58
|
],
|
|
59
|
-
"requiredScripts": [
|
|
60
|
-
"lint"
|
|
61
|
-
],
|
|
62
59
|
"verification": ".editorconfig must exist to drive the .NET formatting and analysis tooling."
|
|
63
60
|
}
|
|
64
61
|
},
|
|
@@ -275,7 +272,7 @@
|
|
|
275
272
|
"commands": [
|
|
276
273
|
"bazel build //..."
|
|
277
274
|
],
|
|
278
|
-
"notes": "C# type errors surface during bazel build with rules_dotnet.
|
|
275
|
+
"notes": "Example only; actual targets are repo-defined. C# type errors surface during bazel build with rules_dotnet."
|
|
279
276
|
},
|
|
280
277
|
"exampleConfigFiles": [
|
|
281
278
|
".editorconfig",
|
|
@@ -292,9 +289,6 @@
|
|
|
292
289
|
"requiredFiles": [
|
|
293
290
|
".editorconfig"
|
|
294
291
|
],
|
|
295
|
-
"requiredScripts": [
|
|
296
|
-
"typecheck"
|
|
297
|
-
],
|
|
298
292
|
"verification": ".editorconfig must exist; Directory.Build.props is optional for shared build configuration."
|
|
299
293
|
}
|
|
300
294
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"commands": [
|
|
40
40
|
"bazel build //... --aspects=@rules_dotnet//dotnet:analyzers.bzl%analyzer_aspect"
|
|
41
41
|
],
|
|
42
|
-
"notes": "Use rules_dotnet analyzer aspects for Roslyn-based linting
|
|
42
|
+
"notes": "Example only; actual targets are repo-defined. Use rules_dotnet analyzer aspects for Roslyn-based linting."
|
|
43
43
|
},
|
|
44
44
|
"exampleConfigFiles": [
|
|
45
45
|
".editorconfig",
|
|
@@ -56,9 +56,6 @@
|
|
|
56
56
|
"requiredFiles": [
|
|
57
57
|
".editorconfig"
|
|
58
58
|
],
|
|
59
|
-
"requiredScripts": [
|
|
60
|
-
"lint"
|
|
61
|
-
],
|
|
62
59
|
"verification": ".editorconfig must exist to drive the .NET formatting and analysis tooling."
|
|
63
60
|
}
|
|
64
61
|
},
|
|
@@ -275,7 +272,7 @@
|
|
|
275
272
|
"commands": [
|
|
276
273
|
"bazel build //..."
|
|
277
274
|
],
|
|
278
|
-
"notes": "C# type errors surface during bazel build with rules_dotnet.
|
|
275
|
+
"notes": "Example only; actual targets are repo-defined. C# type errors surface during bazel build with rules_dotnet."
|
|
279
276
|
},
|
|
280
277
|
"exampleConfigFiles": [
|
|
281
278
|
".editorconfig",
|
|
@@ -292,9 +289,6 @@
|
|
|
292
289
|
"requiredFiles": [
|
|
293
290
|
".editorconfig"
|
|
294
291
|
],
|
|
295
|
-
"requiredScripts": [
|
|
296
|
-
"typecheck"
|
|
297
|
-
],
|
|
298
292
|
"verification": ".editorconfig must exist; Directory.Build.props is optional for shared build configuration."
|
|
299
293
|
}
|
|
300
294
|
},
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"commands": [
|
|
46
46
|
"bazel build //... --aspects=@rules_dotnet//dotnet:analyzers.bzl%analyzer_aspect"
|
|
47
47
|
],
|
|
48
|
-
"notes": "Use rules_dotnet analyzer aspects for Roslyn-based linting
|
|
48
|
+
"notes": "Example only; actual targets are repo-defined. Use rules_dotnet analyzer aspects for Roslyn-based linting."
|
|
49
49
|
},
|
|
50
50
|
"exampleConfigFiles": [
|
|
51
51
|
".editorconfig",
|
|
@@ -62,9 +62,6 @@
|
|
|
62
62
|
"requiredFiles": [
|
|
63
63
|
".editorconfig"
|
|
64
64
|
],
|
|
65
|
-
"requiredScripts": [
|
|
66
|
-
"lint"
|
|
67
|
-
],
|
|
68
65
|
"verification": ".editorconfig must exist to drive the .NET formatting and analysis tooling."
|
|
69
66
|
}
|
|
70
67
|
},
|
|
@@ -308,7 +305,7 @@
|
|
|
308
305
|
"commands": [
|
|
309
306
|
"bazel build //..."
|
|
310
307
|
],
|
|
311
|
-
"notes": "C# type errors surface during bazel build with rules_dotnet.
|
|
308
|
+
"notes": "Example only; actual targets are repo-defined. C# type errors surface during bazel build with rules_dotnet."
|
|
312
309
|
},
|
|
313
310
|
"exampleConfigFiles": [
|
|
314
311
|
".editorconfig",
|
|
@@ -325,9 +322,6 @@
|
|
|
325
322
|
"requiredFiles": [
|
|
326
323
|
".editorconfig"
|
|
327
324
|
],
|
|
328
|
-
"requiredScripts": [
|
|
329
|
-
"typecheck"
|
|
330
|
-
],
|
|
331
325
|
"verification": ".editorconfig must exist; Directory.Build.props is optional for shared build configuration."
|
|
332
326
|
}
|
|
333
327
|
},
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
"commands": [
|
|
123
123
|
"bazel build //... --aspects=@rules_dotnet//dotnet:analyzers.bzl%analyzer_aspect"
|
|
124
124
|
],
|
|
125
|
-
"notes": "Use rules_dotnet analyzer aspects for Roslyn-based linting
|
|
125
|
+
"notes": "Example only; actual targets are repo-defined. Use rules_dotnet analyzer aspects for Roslyn-based linting."
|
|
126
126
|
},
|
|
127
127
|
"exampleConfigFiles": [
|
|
128
128
|
".editorconfig",
|
|
@@ -139,9 +139,6 @@
|
|
|
139
139
|
"requiredFiles": [
|
|
140
140
|
".editorconfig"
|
|
141
141
|
],
|
|
142
|
-
"requiredScripts": [
|
|
143
|
-
"lint"
|
|
144
|
-
],
|
|
145
142
|
"verification": ".editorconfig must exist to drive the .NET formatting and analysis tooling."
|
|
146
143
|
},
|
|
147
144
|
"go": {
|
|
@@ -170,40 +167,38 @@
|
|
|
170
167
|
"verification": ".golangci.yml or .golangci.yaml indicates linting is configured. Run 'golangci-lint run' to verify."
|
|
171
168
|
},
|
|
172
169
|
"python": {
|
|
170
|
+
"anyOfFiles": [
|
|
171
|
+
"pyproject.toml",
|
|
172
|
+
"ruff.toml",
|
|
173
|
+
".flake8",
|
|
174
|
+
"setup.cfg",
|
|
175
|
+
"tox.ini"
|
|
176
|
+
],
|
|
173
177
|
"bazelHints": {
|
|
174
178
|
"commands": [
|
|
175
179
|
"bazel test //...:ruff_test",
|
|
176
180
|
"bazel run //tools/lint:ruff -- check ."
|
|
177
181
|
],
|
|
178
|
-
"notes": "Use rules_python with ruff wrapped as py_test or
|
|
182
|
+
"notes": "Example only; actual targets are repo-defined. Use rules_python with ruff wrapped as py_test or run target."
|
|
179
183
|
},
|
|
180
184
|
"exampleConfigFiles": [
|
|
181
185
|
"pyproject.toml",
|
|
182
|
-
".flake8"
|
|
186
|
+
".flake8",
|
|
187
|
+
"ruff.toml"
|
|
183
188
|
],
|
|
184
189
|
"exampleTools": [
|
|
185
190
|
"ruff",
|
|
186
191
|
"flake8"
|
|
187
192
|
],
|
|
188
193
|
"notes": "Configure a primary linter (such as ruff) and keep rules focused on catching real issues without overwhelming developers.",
|
|
189
|
-
"
|
|
190
|
-
"ruff.toml",
|
|
191
|
-
".flake8"
|
|
192
|
-
],
|
|
193
|
-
"requiredFiles": [
|
|
194
|
-
"pyproject.toml"
|
|
195
|
-
],
|
|
196
|
-
"requiredScripts": [
|
|
197
|
-
"lint"
|
|
198
|
-
],
|
|
199
|
-
"verification": "pyproject.toml (or ruff.toml / .flake8) signals that linting tools are configured for the repository."
|
|
194
|
+
"verification": "pyproject.toml (or ruff.toml / .flake8 / setup.cfg) signals that linting tools are configured for the repository."
|
|
200
195
|
},
|
|
201
196
|
"rust": {
|
|
202
197
|
"bazelHints": {
|
|
203
198
|
"commands": [
|
|
204
199
|
"bazel build //... --aspects=@rules_rust//rust:defs.bzl%clippy_aspect --output_groups=clippy_checks"
|
|
205
200
|
],
|
|
206
|
-
"notes": "rules_rust includes clippy_aspect for Bazel-native Clippy linting
|
|
201
|
+
"notes": "Example only; actual targets are repo-defined. rules_rust includes clippy_aspect for Bazel-native Clippy linting."
|
|
207
202
|
},
|
|
208
203
|
"exampleConfigFiles": [
|
|
209
204
|
"clippy.toml",
|
|
@@ -224,36 +219,40 @@
|
|
|
224
219
|
"verification": "Clippy is available via rustup component. Run 'cargo clippy' to verify linting is configured."
|
|
225
220
|
},
|
|
226
221
|
"typescript-js": {
|
|
222
|
+
"anyOfFiles": [
|
|
223
|
+
"eslint.config.js",
|
|
224
|
+
"eslint.config.mjs",
|
|
225
|
+
"eslint.config.cjs",
|
|
226
|
+
".eslintrc.js",
|
|
227
|
+
".eslintrc.cjs",
|
|
228
|
+
".eslintrc.json",
|
|
229
|
+
".eslintrc.yaml",
|
|
230
|
+
".eslintrc.yml"
|
|
231
|
+
],
|
|
227
232
|
"bazelHints": {
|
|
228
233
|
"commands": [
|
|
229
234
|
"bazel test //... --aspects=//tools:lint.bzl%eslint_aspect --output_groups=report"
|
|
230
235
|
],
|
|
231
|
-
"notes": "Wrap eslint via aspect_rules_lint or a custom sh_test rule.
|
|
236
|
+
"notes": "Example only; actual targets are repo-defined. Wrap eslint via aspect_rules_lint or a custom sh_test rule.",
|
|
232
237
|
"recommendedTargets": [
|
|
233
238
|
"//tools/lint:lint"
|
|
234
239
|
]
|
|
235
240
|
},
|
|
236
241
|
"exampleConfigFiles": [
|
|
237
|
-
".eslintrc.*"
|
|
242
|
+
".eslintrc.*",
|
|
243
|
+
"eslint.config.js"
|
|
238
244
|
],
|
|
239
245
|
"exampleTools": [
|
|
240
246
|
"eslint"
|
|
241
247
|
],
|
|
242
248
|
"notes": "Treat new lint errors as CI failures; keep existing issues as warnings until addressed.",
|
|
243
249
|
"optionalFiles": [
|
|
244
|
-
".eslintrc.js",
|
|
245
|
-
".eslintrc.cjs",
|
|
246
|
-
".eslintrc.json",
|
|
247
|
-
".eslintrc.yaml",
|
|
248
250
|
".prettierrc",
|
|
249
251
|
"prettier.config.js",
|
|
250
252
|
"prettier.config.cjs",
|
|
251
253
|
"prettier.config.json",
|
|
252
254
|
"prettier.config.yaml"
|
|
253
255
|
],
|
|
254
|
-
"requiredFiles": [
|
|
255
|
-
"eslint.config.js"
|
|
256
|
-
],
|
|
257
256
|
"requiredScripts": [
|
|
258
257
|
"lint"
|
|
259
258
|
],
|
|
@@ -329,7 +328,7 @@
|
|
|
329
328
|
"commands": [
|
|
330
329
|
"bazel test //..."
|
|
331
330
|
],
|
|
332
|
-
"notes": "Use rules_python py_test for pytest-based tests.
|
|
331
|
+
"notes": "Example only; actual targets are repo-defined. Use rules_python py_test for pytest-based tests."
|
|
333
332
|
},
|
|
334
333
|
"exampleConfigFiles": [
|
|
335
334
|
"pytest.ini",
|
|
@@ -344,9 +343,6 @@
|
|
|
344
343
|
"pyproject.toml",
|
|
345
344
|
"tests/"
|
|
346
345
|
],
|
|
347
|
-
"requiredScripts": [
|
|
348
|
-
"test"
|
|
349
|
-
],
|
|
350
346
|
"verification": "Test framework configuration is present; tests/ directory or pytest configuration exists."
|
|
351
347
|
},
|
|
352
348
|
"rust": {
|
|
@@ -1094,7 +1090,7 @@
|
|
|
1094
1090
|
"commands": [
|
|
1095
1091
|
"bazel build //..."
|
|
1096
1092
|
],
|
|
1097
|
-
"notes": "C# type errors surface during bazel build with rules_dotnet.
|
|
1093
|
+
"notes": "Example only; actual targets are repo-defined. C# type errors surface during bazel build with rules_dotnet."
|
|
1098
1094
|
},
|
|
1099
1095
|
"exampleConfigFiles": [
|
|
1100
1096
|
".editorconfig",
|
|
@@ -1111,9 +1107,6 @@
|
|
|
1111
1107
|
"requiredFiles": [
|
|
1112
1108
|
".editorconfig"
|
|
1113
1109
|
],
|
|
1114
|
-
"requiredScripts": [
|
|
1115
|
-
"typecheck"
|
|
1116
|
-
],
|
|
1117
1110
|
"verification": ".editorconfig must exist; Directory.Build.props is optional for shared build configuration."
|
|
1118
1111
|
},
|
|
1119
1112
|
"go": {
|
|
@@ -1142,7 +1135,7 @@
|
|
|
1142
1135
|
"bazel test //...:mypy_test",
|
|
1143
1136
|
"bazel run //tools/typecheck:mypy"
|
|
1144
1137
|
],
|
|
1145
|
-
"notes": "Wrap mypy as a py_test or run target
|
|
1138
|
+
"notes": "Example only; actual targets are repo-defined. Wrap mypy as a py_test or run target."
|
|
1146
1139
|
},
|
|
1147
1140
|
"exampleConfigFiles": [
|
|
1148
1141
|
"mypy.ini",
|
|
@@ -1158,9 +1151,6 @@
|
|
|
1158
1151
|
"requiredFiles": [
|
|
1159
1152
|
"pyproject.toml"
|
|
1160
1153
|
],
|
|
1161
|
-
"requiredScripts": [
|
|
1162
|
-
"typecheck"
|
|
1163
|
-
],
|
|
1164
1154
|
"verification": "pyproject.toml (or mypy.ini) signals that mypy configuration is available for the repository."
|
|
1165
1155
|
},
|
|
1166
1156
|
"rust": {
|
|
@@ -35,33 +35,31 @@
|
|
|
35
35
|
"id": "linting",
|
|
36
36
|
"label": "Linting",
|
|
37
37
|
"stack": {
|
|
38
|
+
"anyOfFiles": [
|
|
39
|
+
"pyproject.toml",
|
|
40
|
+
"ruff.toml",
|
|
41
|
+
".flake8",
|
|
42
|
+
"setup.cfg",
|
|
43
|
+
"tox.ini"
|
|
44
|
+
],
|
|
38
45
|
"bazelHints": {
|
|
39
46
|
"commands": [
|
|
40
47
|
"bazel test //...:ruff_test",
|
|
41
48
|
"bazel run //tools/lint:ruff -- check ."
|
|
42
49
|
],
|
|
43
|
-
"notes": "Use rules_python with ruff wrapped as py_test or
|
|
50
|
+
"notes": "Example only; actual targets are repo-defined. Use rules_python with ruff wrapped as py_test or run target."
|
|
44
51
|
},
|
|
45
52
|
"exampleConfigFiles": [
|
|
46
53
|
"pyproject.toml",
|
|
47
|
-
".flake8"
|
|
54
|
+
".flake8",
|
|
55
|
+
"ruff.toml"
|
|
48
56
|
],
|
|
49
57
|
"exampleTools": [
|
|
50
58
|
"ruff",
|
|
51
59
|
"flake8"
|
|
52
60
|
],
|
|
53
61
|
"notes": "Configure a primary linter (such as ruff) and keep rules focused on catching real issues without overwhelming developers.",
|
|
54
|
-
"
|
|
55
|
-
"ruff.toml",
|
|
56
|
-
".flake8"
|
|
57
|
-
],
|
|
58
|
-
"requiredFiles": [
|
|
59
|
-
"pyproject.toml"
|
|
60
|
-
],
|
|
61
|
-
"requiredScripts": [
|
|
62
|
-
"lint"
|
|
63
|
-
],
|
|
64
|
-
"verification": "pyproject.toml (or ruff.toml / .flake8) signals that linting tools are configured for the repository."
|
|
62
|
+
"verification": "pyproject.toml (or ruff.toml / .flake8 / setup.cfg) signals that linting tools are configured for the repository."
|
|
65
63
|
}
|
|
66
64
|
},
|
|
67
65
|
{
|
|
@@ -78,7 +76,7 @@
|
|
|
78
76
|
"commands": [
|
|
79
77
|
"bazel test //..."
|
|
80
78
|
],
|
|
81
|
-
"notes": "Use rules_python py_test for pytest-based tests.
|
|
79
|
+
"notes": "Example only; actual targets are repo-defined. Use rules_python py_test for pytest-based tests."
|
|
82
80
|
},
|
|
83
81
|
"exampleConfigFiles": [
|
|
84
82
|
"pytest.ini",
|
|
@@ -93,9 +91,6 @@
|
|
|
93
91
|
"pyproject.toml",
|
|
94
92
|
"tests/"
|
|
95
93
|
],
|
|
96
|
-
"requiredScripts": [
|
|
97
|
-
"test"
|
|
98
|
-
],
|
|
99
94
|
"verification": "Test framework configuration is present; tests/ directory or pytest configuration exists."
|
|
100
95
|
}
|
|
101
96
|
},
|
|
@@ -285,7 +280,7 @@
|
|
|
285
280
|
"bazel test //...:mypy_test",
|
|
286
281
|
"bazel run //tools/typecheck:mypy"
|
|
287
282
|
],
|
|
288
|
-
"notes": "Wrap mypy as a py_test or run target
|
|
283
|
+
"notes": "Example only; actual targets are repo-defined. Wrap mypy as a py_test or run target."
|
|
289
284
|
},
|
|
290
285
|
"exampleConfigFiles": [
|
|
291
286
|
"mypy.ini",
|
|
@@ -301,9 +296,6 @@
|
|
|
301
296
|
"requiredFiles": [
|
|
302
297
|
"pyproject.toml"
|
|
303
298
|
],
|
|
304
|
-
"requiredScripts": [
|
|
305
|
-
"typecheck"
|
|
306
|
-
],
|
|
307
299
|
"verification": "pyproject.toml (or mypy.ini) signals that mypy configuration is available for the repository."
|
|
308
300
|
}
|
|
309
301
|
},
|
|
@@ -35,33 +35,31 @@
|
|
|
35
35
|
"id": "linting",
|
|
36
36
|
"label": "Linting",
|
|
37
37
|
"stack": {
|
|
38
|
+
"anyOfFiles": [
|
|
39
|
+
"pyproject.toml",
|
|
40
|
+
"ruff.toml",
|
|
41
|
+
".flake8",
|
|
42
|
+
"setup.cfg",
|
|
43
|
+
"tox.ini"
|
|
44
|
+
],
|
|
38
45
|
"bazelHints": {
|
|
39
46
|
"commands": [
|
|
40
47
|
"bazel test //...:ruff_test",
|
|
41
48
|
"bazel run //tools/lint:ruff -- check ."
|
|
42
49
|
],
|
|
43
|
-
"notes": "Use rules_python with ruff wrapped as py_test or
|
|
50
|
+
"notes": "Example only; actual targets are repo-defined. Use rules_python with ruff wrapped as py_test or run target."
|
|
44
51
|
},
|
|
45
52
|
"exampleConfigFiles": [
|
|
46
53
|
"pyproject.toml",
|
|
47
|
-
".flake8"
|
|
54
|
+
".flake8",
|
|
55
|
+
"ruff.toml"
|
|
48
56
|
],
|
|
49
57
|
"exampleTools": [
|
|
50
58
|
"ruff",
|
|
51
59
|
"flake8"
|
|
52
60
|
],
|
|
53
61
|
"notes": "Configure a primary linter (such as ruff) and keep rules focused on catching real issues without overwhelming developers.",
|
|
54
|
-
"
|
|
55
|
-
"ruff.toml",
|
|
56
|
-
".flake8"
|
|
57
|
-
],
|
|
58
|
-
"requiredFiles": [
|
|
59
|
-
"pyproject.toml"
|
|
60
|
-
],
|
|
61
|
-
"requiredScripts": [
|
|
62
|
-
"lint"
|
|
63
|
-
],
|
|
64
|
-
"verification": "pyproject.toml (or ruff.toml / .flake8) signals that linting tools are configured for the repository."
|
|
62
|
+
"verification": "pyproject.toml (or ruff.toml / .flake8 / setup.cfg) signals that linting tools are configured for the repository."
|
|
65
63
|
}
|
|
66
64
|
},
|
|
67
65
|
{
|
|
@@ -78,7 +76,7 @@
|
|
|
78
76
|
"commands": [
|
|
79
77
|
"bazel test //..."
|
|
80
78
|
],
|
|
81
|
-
"notes": "Use rules_python py_test for pytest-based tests.
|
|
79
|
+
"notes": "Example only; actual targets are repo-defined. Use rules_python py_test for pytest-based tests."
|
|
82
80
|
},
|
|
83
81
|
"exampleConfigFiles": [
|
|
84
82
|
"pytest.ini",
|
|
@@ -93,9 +91,6 @@
|
|
|
93
91
|
"pyproject.toml",
|
|
94
92
|
"tests/"
|
|
95
93
|
],
|
|
96
|
-
"requiredScripts": [
|
|
97
|
-
"test"
|
|
98
|
-
],
|
|
99
94
|
"verification": "Test framework configuration is present; tests/ directory or pytest configuration exists."
|
|
100
95
|
}
|
|
101
96
|
},
|
|
@@ -285,7 +280,7 @@
|
|
|
285
280
|
"bazel test //...:mypy_test",
|
|
286
281
|
"bazel run //tools/typecheck:mypy"
|
|
287
282
|
],
|
|
288
|
-
"notes": "Wrap mypy as a py_test or run target
|
|
283
|
+
"notes": "Example only; actual targets are repo-defined. Wrap mypy as a py_test or run target."
|
|
289
284
|
},
|
|
290
285
|
"exampleConfigFiles": [
|
|
291
286
|
"mypy.ini",
|
|
@@ -301,9 +296,6 @@
|
|
|
301
296
|
"requiredFiles": [
|
|
302
297
|
"pyproject.toml"
|
|
303
298
|
],
|
|
304
|
-
"requiredScripts": [
|
|
305
|
-
"typecheck"
|
|
306
|
-
],
|
|
307
299
|
"verification": "pyproject.toml (or mypy.ini) signals that mypy configuration is available for the repository."
|
|
308
300
|
}
|
|
309
301
|
},
|
|
@@ -41,33 +41,31 @@
|
|
|
41
41
|
"id": "linting",
|
|
42
42
|
"label": "Linting",
|
|
43
43
|
"stack": {
|
|
44
|
+
"anyOfFiles": [
|
|
45
|
+
"pyproject.toml",
|
|
46
|
+
"ruff.toml",
|
|
47
|
+
".flake8",
|
|
48
|
+
"setup.cfg",
|
|
49
|
+
"tox.ini"
|
|
50
|
+
],
|
|
44
51
|
"bazelHints": {
|
|
45
52
|
"commands": [
|
|
46
53
|
"bazel test //...:ruff_test",
|
|
47
54
|
"bazel run //tools/lint:ruff -- check ."
|
|
48
55
|
],
|
|
49
|
-
"notes": "Use rules_python with ruff wrapped as py_test or
|
|
56
|
+
"notes": "Example only; actual targets are repo-defined. Use rules_python with ruff wrapped as py_test or run target."
|
|
50
57
|
},
|
|
51
58
|
"exampleConfigFiles": [
|
|
52
59
|
"pyproject.toml",
|
|
53
|
-
".flake8"
|
|
60
|
+
".flake8",
|
|
61
|
+
"ruff.toml"
|
|
54
62
|
],
|
|
55
63
|
"exampleTools": [
|
|
56
64
|
"ruff",
|
|
57
65
|
"flake8"
|
|
58
66
|
],
|
|
59
67
|
"notes": "Configure a primary linter (such as ruff) and keep rules focused on catching real issues without overwhelming developers.",
|
|
60
|
-
"
|
|
61
|
-
"ruff.toml",
|
|
62
|
-
".flake8"
|
|
63
|
-
],
|
|
64
|
-
"requiredFiles": [
|
|
65
|
-
"pyproject.toml"
|
|
66
|
-
],
|
|
67
|
-
"requiredScripts": [
|
|
68
|
-
"lint"
|
|
69
|
-
],
|
|
70
|
-
"verification": "pyproject.toml (or ruff.toml / .flake8) signals that linting tools are configured for the repository."
|
|
68
|
+
"verification": "pyproject.toml (or ruff.toml / .flake8 / setup.cfg) signals that linting tools are configured for the repository."
|
|
71
69
|
}
|
|
72
70
|
},
|
|
73
71
|
{
|
|
@@ -87,7 +85,7 @@
|
|
|
87
85
|
"commands": [
|
|
88
86
|
"bazel test //..."
|
|
89
87
|
],
|
|
90
|
-
"notes": "Use rules_python py_test for pytest-based tests.
|
|
88
|
+
"notes": "Example only; actual targets are repo-defined. Use rules_python py_test for pytest-based tests."
|
|
91
89
|
},
|
|
92
90
|
"exampleConfigFiles": [
|
|
93
91
|
"pytest.ini",
|
|
@@ -102,9 +100,6 @@
|
|
|
102
100
|
"pyproject.toml",
|
|
103
101
|
"tests/"
|
|
104
102
|
],
|
|
105
|
-
"requiredScripts": [
|
|
106
|
-
"test"
|
|
107
|
-
],
|
|
108
103
|
"verification": "Test framework configuration is present; tests/ directory or pytest configuration exists."
|
|
109
104
|
}
|
|
110
105
|
},
|
|
@@ -318,7 +313,7 @@
|
|
|
318
313
|
"bazel test //...:mypy_test",
|
|
319
314
|
"bazel run //tools/typecheck:mypy"
|
|
320
315
|
],
|
|
321
|
-
"notes": "Wrap mypy as a py_test or run target
|
|
316
|
+
"notes": "Example only; actual targets are repo-defined. Wrap mypy as a py_test or run target."
|
|
322
317
|
},
|
|
323
318
|
"exampleConfigFiles": [
|
|
324
319
|
"mypy.ini",
|
|
@@ -334,9 +329,6 @@
|
|
|
334
329
|
"requiredFiles": [
|
|
335
330
|
"pyproject.toml"
|
|
336
331
|
],
|
|
337
|
-
"requiredScripts": [
|
|
338
|
-
"typecheck"
|
|
339
|
-
],
|
|
340
332
|
"verification": "pyproject.toml (or mypy.ini) signals that mypy configuration is available for the repository."
|
|
341
333
|
}
|
|
342
334
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"commands": [
|
|
40
40
|
"bazel build //... --aspects=@rules_rust//rust:defs.bzl%clippy_aspect --output_groups=clippy_checks"
|
|
41
41
|
],
|
|
42
|
-
"notes": "rules_rust includes clippy_aspect for Bazel-native Clippy linting
|
|
42
|
+
"notes": "Example only; actual targets are repo-defined. rules_rust includes clippy_aspect for Bazel-native Clippy linting."
|
|
43
43
|
},
|
|
44
44
|
"exampleConfigFiles": [
|
|
45
45
|
"clippy.toml",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"commands": [
|
|
40
40
|
"bazel build //... --aspects=@rules_rust//rust:defs.bzl%clippy_aspect --output_groups=clippy_checks"
|
|
41
41
|
],
|
|
42
|
-
"notes": "rules_rust includes clippy_aspect for Bazel-native Clippy linting
|
|
42
|
+
"notes": "Example only; actual targets are repo-defined. rules_rust includes clippy_aspect for Bazel-native Clippy linting."
|
|
43
43
|
},
|
|
44
44
|
"exampleConfigFiles": [
|
|
45
45
|
"clippy.toml",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"commands": [
|
|
46
46
|
"bazel build //... --aspects=@rules_rust//rust:defs.bzl%clippy_aspect --output_groups=clippy_checks"
|
|
47
47
|
],
|
|
48
|
-
"notes": "rules_rust includes clippy_aspect for Bazel-native Clippy linting
|
|
48
|
+
"notes": "Example only; actual targets are repo-defined. rules_rust includes clippy_aspect for Bazel-native Clippy linting."
|
|
49
49
|
},
|
|
50
50
|
"exampleConfigFiles": [
|
|
51
51
|
"clippy.toml",
|
|
@@ -35,36 +35,40 @@
|
|
|
35
35
|
"id": "linting",
|
|
36
36
|
"label": "Linting",
|
|
37
37
|
"stack": {
|
|
38
|
+
"anyOfFiles": [
|
|
39
|
+
"eslint.config.js",
|
|
40
|
+
"eslint.config.mjs",
|
|
41
|
+
"eslint.config.cjs",
|
|
42
|
+
".eslintrc.js",
|
|
43
|
+
".eslintrc.cjs",
|
|
44
|
+
".eslintrc.json",
|
|
45
|
+
".eslintrc.yaml",
|
|
46
|
+
".eslintrc.yml"
|
|
47
|
+
],
|
|
38
48
|
"bazelHints": {
|
|
39
49
|
"commands": [
|
|
40
50
|
"bazel test //... --aspects=//tools:lint.bzl%eslint_aspect --output_groups=report"
|
|
41
51
|
],
|
|
42
|
-
"notes": "Wrap eslint via aspect_rules_lint or a custom sh_test rule.
|
|
52
|
+
"notes": "Example only; actual targets are repo-defined. Wrap eslint via aspect_rules_lint or a custom sh_test rule.",
|
|
43
53
|
"recommendedTargets": [
|
|
44
54
|
"//tools/lint:lint"
|
|
45
55
|
]
|
|
46
56
|
},
|
|
47
57
|
"exampleConfigFiles": [
|
|
48
|
-
".eslintrc.*"
|
|
58
|
+
".eslintrc.*",
|
|
59
|
+
"eslint.config.js"
|
|
49
60
|
],
|
|
50
61
|
"exampleTools": [
|
|
51
62
|
"eslint"
|
|
52
63
|
],
|
|
53
64
|
"notes": "Treat new lint errors as CI failures; keep existing issues as warnings until addressed.",
|
|
54
65
|
"optionalFiles": [
|
|
55
|
-
".eslintrc.js",
|
|
56
|
-
".eslintrc.cjs",
|
|
57
|
-
".eslintrc.json",
|
|
58
|
-
".eslintrc.yaml",
|
|
59
66
|
".prettierrc",
|
|
60
67
|
"prettier.config.js",
|
|
61
68
|
"prettier.config.cjs",
|
|
62
69
|
"prettier.config.json",
|
|
63
70
|
"prettier.config.yaml"
|
|
64
71
|
],
|
|
65
|
-
"requiredFiles": [
|
|
66
|
-
"eslint.config.js"
|
|
67
|
-
],
|
|
68
72
|
"requiredScripts": [
|
|
69
73
|
"lint"
|
|
70
74
|
],
|
|
@@ -35,36 +35,40 @@
|
|
|
35
35
|
"id": "linting",
|
|
36
36
|
"label": "Linting",
|
|
37
37
|
"stack": {
|
|
38
|
+
"anyOfFiles": [
|
|
39
|
+
"eslint.config.js",
|
|
40
|
+
"eslint.config.mjs",
|
|
41
|
+
"eslint.config.cjs",
|
|
42
|
+
".eslintrc.js",
|
|
43
|
+
".eslintrc.cjs",
|
|
44
|
+
".eslintrc.json",
|
|
45
|
+
".eslintrc.yaml",
|
|
46
|
+
".eslintrc.yml"
|
|
47
|
+
],
|
|
38
48
|
"bazelHints": {
|
|
39
49
|
"commands": [
|
|
40
50
|
"bazel test //... --aspects=//tools:lint.bzl%eslint_aspect --output_groups=report"
|
|
41
51
|
],
|
|
42
|
-
"notes": "Wrap eslint via aspect_rules_lint or a custom sh_test rule.
|
|
52
|
+
"notes": "Example only; actual targets are repo-defined. Wrap eslint via aspect_rules_lint or a custom sh_test rule.",
|
|
43
53
|
"recommendedTargets": [
|
|
44
54
|
"//tools/lint:lint"
|
|
45
55
|
]
|
|
46
56
|
},
|
|
47
57
|
"exampleConfigFiles": [
|
|
48
|
-
".eslintrc.*"
|
|
58
|
+
".eslintrc.*",
|
|
59
|
+
"eslint.config.js"
|
|
49
60
|
],
|
|
50
61
|
"exampleTools": [
|
|
51
62
|
"eslint"
|
|
52
63
|
],
|
|
53
64
|
"notes": "Treat new lint errors as CI failures; keep existing issues as warnings until addressed.",
|
|
54
65
|
"optionalFiles": [
|
|
55
|
-
".eslintrc.js",
|
|
56
|
-
".eslintrc.cjs",
|
|
57
|
-
".eslintrc.json",
|
|
58
|
-
".eslintrc.yaml",
|
|
59
66
|
".prettierrc",
|
|
60
67
|
"prettier.config.js",
|
|
61
68
|
"prettier.config.cjs",
|
|
62
69
|
"prettier.config.json",
|
|
63
70
|
"prettier.config.yaml"
|
|
64
71
|
],
|
|
65
|
-
"requiredFiles": [
|
|
66
|
-
"eslint.config.js"
|
|
67
|
-
],
|
|
68
72
|
"requiredScripts": [
|
|
69
73
|
"lint"
|
|
70
74
|
],
|
|
@@ -41,36 +41,40 @@
|
|
|
41
41
|
"id": "linting",
|
|
42
42
|
"label": "Linting",
|
|
43
43
|
"stack": {
|
|
44
|
+
"anyOfFiles": [
|
|
45
|
+
"eslint.config.js",
|
|
46
|
+
"eslint.config.mjs",
|
|
47
|
+
"eslint.config.cjs",
|
|
48
|
+
".eslintrc.js",
|
|
49
|
+
".eslintrc.cjs",
|
|
50
|
+
".eslintrc.json",
|
|
51
|
+
".eslintrc.yaml",
|
|
52
|
+
".eslintrc.yml"
|
|
53
|
+
],
|
|
44
54
|
"bazelHints": {
|
|
45
55
|
"commands": [
|
|
46
56
|
"bazel test //... --aspects=//tools:lint.bzl%eslint_aspect --output_groups=report"
|
|
47
57
|
],
|
|
48
|
-
"notes": "Wrap eslint via aspect_rules_lint or a custom sh_test rule.
|
|
58
|
+
"notes": "Example only; actual targets are repo-defined. Wrap eslint via aspect_rules_lint or a custom sh_test rule.",
|
|
49
59
|
"recommendedTargets": [
|
|
50
60
|
"//tools/lint:lint"
|
|
51
61
|
]
|
|
52
62
|
},
|
|
53
63
|
"exampleConfigFiles": [
|
|
54
|
-
".eslintrc.*"
|
|
64
|
+
".eslintrc.*",
|
|
65
|
+
"eslint.config.js"
|
|
55
66
|
],
|
|
56
67
|
"exampleTools": [
|
|
57
68
|
"eslint"
|
|
58
69
|
],
|
|
59
70
|
"notes": "Treat new lint errors as CI failures; keep existing issues as warnings until addressed.",
|
|
60
71
|
"optionalFiles": [
|
|
61
|
-
".eslintrc.js",
|
|
62
|
-
".eslintrc.cjs",
|
|
63
|
-
".eslintrc.json",
|
|
64
|
-
".eslintrc.yaml",
|
|
65
72
|
".prettierrc",
|
|
66
73
|
"prettier.config.js",
|
|
67
74
|
"prettier.config.cjs",
|
|
68
75
|
"prettier.config.json",
|
|
69
76
|
"prettier.config.yaml"
|
|
70
77
|
],
|
|
71
|
-
"requiredFiles": [
|
|
72
|
-
"eslint.config.js"
|
|
73
|
-
],
|
|
74
78
|
"requiredScripts": [
|
|
75
79
|
"lint"
|
|
76
80
|
],
|
package/package.json
CHANGED