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
8 changes: 2 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,16 @@ repos:
rev: 'v3.5.3'
hooks:
- id: 'prettier'
# TODO: Add 'jsonc' so 'src/schema-validation.jsonc' is checked in CI
# Error: "Type tag 'jsonc' is not recognized. Try upgrading identify and pre-commit?"
types_or: ['yaml', 'json', 'javascript', 'css', 'markdown']
always_run: true
types: [text]
additional_dependencies:
- '[email protected]'
- '[email protected]'
- '[email protected]'
pass_filenames: true
args:
[
'--no-color',
'--log-level=warn',
'--write',
'--check',
'--config=.prettierrc.cjs',
'--ignore-path=.gitignore',
]
Expand Down
8 changes: 8 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,14 @@ Used by: `tamasfe/taplo`.

Used by: `tombi-toml/tombi`.

**`x-tombi-array-values-order`**

Used by: `tombi-toml/tombi`.

**`x-tombi-table-keys-order`**

Used by: `tombi-toml/tombi`.

**`x-intellij-language-injection`**

Used by Intellij.
Expand Down
150 changes: 110 additions & 40 deletions src/schemas/json/partial-pytest.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,17 @@
"type": "object",
"properties": {
"addopts": {
"type": "array",
"items": {
"type": "string"
},
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
],
"description": "Extra command line options to be added by default.",
"x-tombi-array-values-order": "ascending"
},
Expand Down Expand Up @@ -58,10 +65,17 @@
"description": "Sets default encoding for doctest files."
},
"doctest_optionflags": {
"type": "array",
"items": {
"type": "string"
},
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
],
"description": "Specifies doctest flag names from the `doctest` module.",
"x-tombi-array-values-order": "ascending"
},
Expand All @@ -76,10 +90,17 @@
"description": "Sets timeout in seconds for dumping the traceback of all threads if a test takes too long."
},
"filterwarnings": {
"type": "array",
"items": {
"type": "string"
},
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
],
"description": "Sets action to take for matching warnings. Each item is a warning specification string.",
"x-tombi-array-values-order": "ascending"
},
Expand Down Expand Up @@ -173,10 +194,17 @@
"description": "Sets minimum log level for captured logging. Can be level name or integer value."
},
"markers": {
"type": "array",
"items": {
"type": "string"
},
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
],
"description": "Allows registering additional markers for test functions.",
"x-tombi-array-values-order": "ascending"
},
Expand All @@ -200,10 +228,17 @@
"x-tombi-array-values-order": "ascending"
},
"python_classes": {
"type": "array",
"items": {
"type": "string"
},
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
],
"description": "Specifies name prefixes or glob patterns for identifying test classes.",
"x-tombi-array-values-order": "ascending"
},
Expand All @@ -224,35 +259,63 @@
"x-tombi-array-values-order": "ascending"
},
"python_functions": {
"type": "array",
"items": {
"type": "string"
},
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
],
"description": "Specifies name prefixes or glob patterns for identifying test functions and methods.",
"default": ["test_*"],
"x-tombi-array-values-order": "ascending"
},
"pythonpath": {
"type": "array",
"items": {
"type": "string"
},
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
],
"description": "Sets list of directories to be added to the Python search path. Paths are relative to root directory.",
"x-tombi-array-values-order": "ascending"
},
"required_plugins": {
"type": "array",
"items": {
"type": "string"
},
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
],
"description": "Space-separated list of plugins required to run pytest. Can include version specifiers.",
"x-tombi-array-values-order": "ascending"
},
"testpaths": {
"type": "array",
"items": {
"type": "string"
},
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
],
"description": "Sets directories to search for tests when no specific paths are given on the command line. Paths are relative to root directory. Shell-style wildcards can be used.",
"x-tombi-array-values-order": "ascending"
},
Expand All @@ -268,10 +331,17 @@
"default": "all"
},
"usefixtures": {
"type": "array",
"items": {
"type": "string"
},
"oneOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "string"
}
],
"description": "List of fixtures that will be applied to all test functions.",
"x-tombi-array-values-order": "ascending"
},
Expand Down