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
9 changes: 9 additions & 0 deletions src/api/json/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -9556,6 +9556,15 @@
"description": "nexus-rpc-gen configuration for generating Nexus RPC service stubs",
"fileMatch": ["*.nexusrpc.yaml", "*.nexusrpc.yml"],
"url": "https://raw.githubusercontent.com/nexus-rpc/nexus-rpc-gen/main/schemas/nexus-rpc-gen.json"
},
{
"name": "AgentCore CLI",
"description": "Configuration file for Amazon Bedrock AgentCore CLI projects",
"fileMatch": ["**/agentcore/agentcore.json"],
"url": "https://schema.agentcore.aws.dev/v1/agentcore.json",
"versions": {
"1.0": "https://schema.agentcore.aws.dev/v1/agentcore.json"
}
}
]
}
110 changes: 110 additions & 0 deletions src/schemas/json/bunfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,41 @@
"type": "boolean",
"default": true
},
"env": {
"$comment": "https://bun.sh/docs/runtime/bunfig#env",
"description": "Configure automatic `.env` file loading. By default, Bun automatically loads `.env` files.\nhttps://bun.sh/docs/runtime/bunfig#env",
"oneOf": [
{
"type": "boolean"
},
{
"type": "object",
"additionalProperties": false,
"properties": {
"file": {
"description": "Enable or disable automatic default `.env` file loading.\nhttps://bun.sh/docs/runtime/bunfig#env",
"type": "boolean"
}
}
}
]
},
"console": {
"$comment": "https://bun.sh/docs/runtime/bunfig#console",
"description": "Configure console output behavior.\nhttps://bun.sh/docs/runtime/bunfig#console",
"type": "object",
"additionalProperties": false,
"properties": {
"depth": {
"$comment": "https://bun.sh/docs/runtime/bunfig#console-depth",
"description": "Set the default depth for `console.log()` object inspection. Default `2`\nhttps://bun.sh/docs/runtime/bunfig#console-depth",
"type": "integer",
"minimum": 0,
"default": 2,
"examples": [3]
}
}
},
"test": {
"$comment": "https://bun.sh/docs/runtime/bunfig#test-runner",
"description": "Test runner\nhttps://bun.sh/docs/runtime/bunfig#test-runner",
Expand Down Expand Up @@ -122,6 +157,14 @@
],
"examples": [["./setup.ts"]]
},
"pathIgnorePatterns": {
"$comment": "https://bun.sh/docs/runtime/bunfig#test-pathignorepatterns",
"description": "Exclude files and directories from test discovery using glob patterns. Can be a single string pattern or an array of patterns.\nhttps://bun.sh/docs/runtime/bunfig#test-pathignorepatterns",
"oneOf": [
{ "type": "string" },
{ "type": "array", "items": { "type": "string" } }
]
},
"smol": {
"$comment": "https://bun.sh/docs/runtime/bunfig#test-smol",
"description": "Same as the top-level `smol` field, but only applies to `bun test`\nhttps://bun.sh/docs/runtime/bunfig#test-smol",
Expand Down Expand Up @@ -176,6 +219,67 @@
"type": "string",
"default": "coverage"
},
"randomize": {
"$comment": "https://bun.sh/docs/runtime/bunfig#test-randomize",
"description": "Run tests in random order. Default `false`\nhttps://bun.sh/docs/runtime/bunfig#test-randomize",
"type": "boolean",
"default": false
},
"seed": {
"$comment": "https://bun.sh/docs/runtime/bunfig#test-seed",
"description": "Set the random seed for test randomization. This requires `randomize` to be `true`.\nhttps://bun.sh/docs/runtime/bunfig#test-seed",
"type": "integer",
"minimum": 0,
"examples": [2444615283]
},
"rerunEach": {
"$comment": "https://bun.sh/docs/runtime/bunfig#test-reruneach",
"description": "Re-run each test file a specified number of times. Default `0` (run once).\nhttps://bun.sh/docs/runtime/bunfig#test-reruneach",
"type": "integer",
"minimum": 0,
"default": 0,
"examples": [3]
},
"retry": {
"$comment": "https://bun.sh/docs/runtime/bunfig#test-retry",
"description": "Default retry count for all tests. Failed tests will be retried up to this many times. Default `0` (no retries).\nhttps://bun.sh/docs/runtime/bunfig#test-retry",
"type": "integer",
"minimum": 0,
"default": 0,
"examples": [3]
},
"concurrentTestGlob": {
"$comment": "https://bun.sh/docs/runtime/bunfig#test-concurrenttestglob",
"description": "Glob pattern for test files that should run with concurrent test execution enabled.\nhttps://bun.sh/docs/runtime/bunfig#test-concurrenttestglob",
"type": "string",
"examples": ["**/concurrent-*.test.ts"]
},
"onlyFailures": {
"$comment": "https://bun.sh/docs/runtime/bunfig#test-onlyfailures",
"description": "When enabled, only failed tests are displayed in the output. Default `false`\nhttps://bun.sh/docs/runtime/bunfig#test-onlyfailures",
"type": "boolean",
"default": false
},
"reporter": {
"$comment": "https://bun.sh/docs/runtime/bunfig#test-reporter",
"description": "Configure the test reporter settings.\nhttps://bun.sh/docs/runtime/bunfig#test-reporter",
"type": "object",
"additionalProperties": false,
"properties": {
"dots": {
"$comment": "https://bun.sh/docs/runtime/bunfig#test-reporter-dots",
"description": "Enable the dots reporter. Default `false`\nhttps://bun.sh/docs/runtime/bunfig#test-reporter-dots",
"type": "boolean",
"default": false
},
"junit": {
"$comment": "https://bun.sh/docs/runtime/bunfig#test-reporter-junit",
"description": "Enable JUnit XML reporting and set the output file path.\nhttps://bun.sh/docs/runtime/bunfig#test-reporter-junit",
"type": "string",
"examples": ["test-results.xml"]
}
}
},
"timeout": {
"$comment": "https://bun.com/docs/test/configuration#default-timeout",
"description": "Set the default timeout in milliseconds for all tests. This can be overridden by individual tests. Default `5000`\nhttps://bun.com/docs/test/configuration#default-timeout",
Expand Down Expand Up @@ -290,6 +394,12 @@
{ "url": "https://registry.npmjs.org", "token": "123456" }
]
},
"linkWorkspacePackages": {
"$comment": "https://bun.sh/docs/runtime/bunfig#install-linkworkspacepackages",
"description": "Whether to link workspace packages from the monorepo root to their respective `node_modules` directories. Default `true`\nhttps://bun.sh/docs/runtime/bunfig#install-linkworkspacepackages",
"type": "boolean",
"default": true
},
"scopes": {
"$comment": "https://bun.sh/docs/runtime/bunfig#install-scopes",
"description": "To configure a registry for a particular scope (e.g. `@myorg/<package>`) use `install.scopes`. You can reference environment variables with `$variable` notation\nhttps://bun.sh/docs/runtime/bunfig#install-scopes",
Expand Down
12 changes: 12 additions & 0 deletions src/schemas/json/partial-poe.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"description": "Poe the Poet is a task runner and build tool that uses simple configuration to define project tasks. It can work as a standalone tool or as a plugin for Poetry.",
"definitions": {
"standard_options": {
"additionalProperties": true,
"properties": {
"args": {
"anyOf": [
Expand Down Expand Up @@ -144,6 +145,7 @@
"type": "object"
},
"capture_stdout_option": {
"additionalProperties": true,
"properties": {
"capture_stdout": {
"description": "Redirects the task output to a file with the given path. Supports environment variable interpolation.",
Expand All @@ -155,6 +157,7 @@
"type": "object"
},
"use_exec_option": {
"additionalProperties": true,
"properties": {
"use_exec": {
"description": "Specify that this task should be executed in the same process, instead of as a subprocess. Note: This feature has limitations, such as not being compatible with tasks that are referenced by other tasks and not working on Windows.",
Expand Down Expand Up @@ -383,6 +386,7 @@
},
{
"type": "object",
"additionalProperties": true,
"properties": {
"empty_glob": {
"default": "pass",
Expand Down Expand Up @@ -422,6 +426,7 @@
},
{
"type": "object",
"additionalProperties": true,
"properties": {
"assert": {
"description": "A boolean indicating if the task will fail when the result of the expression is falsy.",
Expand Down Expand Up @@ -456,6 +461,7 @@
},
{
"type": "object",
"additionalProperties": true,
"properties": {
"ignore_fail": {
"description": "If true the failure of the referenced task will be ignored and the ref task will return exit code 0.",
Expand Down Expand Up @@ -496,6 +502,7 @@
},
{
"type": "object",
"additionalProperties": true,
"properties": {
"ignore_fail": {
"$ref": "#/definitions/ignore_fail_exec_option"
Expand Down Expand Up @@ -526,6 +533,7 @@
},
{
"type": "object",
"additionalProperties": true,
"properties": {
"default_item_type": {
"default": "ref",
Expand All @@ -551,6 +559,7 @@
},
{
"type": "object",
"additionalProperties": true,
"properties": {
"default_item_type": {
"default": "ref",
Expand Down Expand Up @@ -594,6 +603,7 @@
},
{
"type": "object",
"additionalProperties": true,
"properties": {
"ignore_fail": {
"$ref": "#/definitions/ignore_fail_exec_option"
Expand Down Expand Up @@ -643,6 +653,7 @@
},
{
"type": "object",
"additionalProperties": true,
"properties": {
"control": {
"$ref": "#/definitions/one_of_tasks",
Expand Down Expand Up @@ -731,6 +742,7 @@
"default_array_task_type": {
"default": "sequence",
"description": "When a task is declared as an array (instead of a table), then it is interpreted as the default array task type, which will be 'sequence' unless otherwise specified.",
"enum": ["sequence", "parallel"],
"type": "string"
},
"default_task_type": {
Expand Down
15 changes: 13 additions & 2 deletions src/schemas/json/sublime-syntax.json
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,19 @@
"enum": [1, 2]
},
"extends": {
"description": "A string of a base syntax this syntax should inherit from. The base syntax must be specified using its package path, e.g. Packages/JavaScript/JavaScript.sublime-syntax. See Inheritance for an overview of syntax inheritance.",
"type": "string"
"description": "A base syntax (or list of syntaxes) to inherit from, specified using its package path, e.g. Packages/JavaScript/JavaScript.sublime-syntax. When using multiple inheritance, parent syntaxes are processed top to bottom and must share the same base. See Inheritance for an overview of syntax inheritance.",
"oneOf": [
{
"type": "string"
},
{
"type": "array",
"items": {
"type": "string"
},
"minItems": 2
}
]
},
"hidden": {
"description": "Hidden syntax definitions won’t be shown in the menu, but can still be assigned by plugins, or included by other syntax definitions.",
Expand Down
17 changes: 17 additions & 0 deletions src/test/bunfig/bunfig.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jsxImportSource = "react"
logLevel = "debug" # "debug" | "warn" | "error"

telemetry = false
env = false

[console]
depth = 3

[define]
# Replace any usage of "process.env.bagel" with the string `lox`.
Expand All @@ -35,6 +39,7 @@ optional = true
peer = true
production = false
registry = "https://registry.npmjs.org"
linkWorkspacePackages = true
# The CA certificate as a string
ca = "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----"
# A path to a CA certificate file. The file can contain multiple certificates.
Expand Down Expand Up @@ -71,10 +76,22 @@ silent = true

[test]
coverage = false
coveragePathIgnorePatterns = ["**/*.spec.ts", "src/utils/**"]
coverageSkipTestFiles = false
# to require 90% line-level and function-level coverage
coverageThreshold = 0.9
concurrentTestGlob = "**/concurrent-*.test.ts"
onlyFailures = true
preload = ["./setup.ts"]
pathIgnorePatterns = ["vendor/**", "submodules/**", "fixtures/**"]
randomize = true
rerunEach = 3
retry = 3
root = "./__tests__"
seed = 2444615283
smol = true
timeout = 10000

[test.reporter]
dots = true
junit = "test-results.xml"
54 changes: 54 additions & 0 deletions src/test/pyproject/poe.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
#:schema ../../schemas/json/pyproject.json
[tool.poe]
verbosity = 0
default_task_type = "cmd"
default_array_task_type = "sequence"
default_array_item_task_type = "ref"

[tool.poe.env]
LOG_LEVEL = "info"
MY_VAR = { default = "fallback" }

[tool.poe.tasks.build]
cmd = "python -m build"
help = "Build the project"

[tool.poe.tasks.test]
cmd = "pytest"
cwd = "tests"
help = "Run tests"

[tool.poe.tasks.lint]
shell = "ruff check . && mypy ."
interpreter = "bash"
help = "Run linters"

[tool.poe.tasks.format]
script = "scripts.format:main"
help = "Format source code"

[tool.poe.tasks.check]
sequence = ["lint", "test"]
help = "Run lint and tests in sequence"
ignore_fail = "return_non_zero"

[tool.poe.tasks.check-parallel]
parallel = ["lint", "test"]
help = "Run lint and tests in parallel"

[tool.poe.tasks._hidden]
cmd = "echo hidden task"

[tool.poe.tasks.verbose-build]
cmd = "python -m build -v"
verbosity = 1
deps = ["_hidden"]

[tool.poe.tasks.expr-example]
expr = "1 + 1"
imports = ["os", "sys"]
assert = true

[tool.poe.tasks.ref-example]
ref = "build"
help = "Alias for build"