Skip to content

false positive schema validations errors with tombi and pyproject.toml tox files #3823

@ssbarnea

Description

@ssbarnea

Apparently there are some problems with either tombi or the schema which makes it throw some warnings that should not do. Any ideas how we can address them?

> tombi --version                        
tombi 0.7.32

> tombi lint pyproject.toml 
tombi lint --no-cache -v pyproject.toml
  Debug: "pyproject.toml" found at "/Users/ssbarnea/code/a/devtools/ansible-dev-tools/pyproject.toml"
  Debug: No [tool.tombi] found in "/Users/ssbarnea/code/a/devtools/ansible-dev-tools/pyproject.toml"
  Debug: config file not found, use default config
  Debug: starting new connection: https://www.schemastore.org/
  Debug: Searching for TOML files using user input patterns...
  Debug: fetch catalog from url: https://www.schemastore.org/api/json/catalog.json
  Debug: linting... "pyproject.toml"
  Debug: fetch schema from embedded file: tombi://www.schemastore.org/pyproject.json
  Debug: fetch schema from uri: https://www.schemastore.org/partial-black.json
  Debug: fetch schema from uri: https://www.schemastore.org/partial-mypy.json
  Debug: fetch schema from uri: https://www.schemastore.org/partial-mypy.json
  Debug: fetch schema from uri: https://www.schemastore.org/partial-pytest.json
  Debug: fetch schema from uri: https://www.schemastore.org/ruff.json
  Debug: fetch schema from uri: https://www.schemastore.org/partial-setuptools.json
  Debug: fetch schema from uri: https://www.schemastore.org/partial-setuptools-scm.json
  Debug: fetch schema from uri: https://www.schemastore.org/partial-tox.json
  Debug: fetch schema from uri: https://www.schemastore.org/uv.json
Warning: In strict mode, `tool.tox` does not allow "env_list" key. Please add `"additionalProperties": true` to the location where `tool.tox` is defined in https://www.schemastore.org/partial-tox.json, or add `#:tombi schema.strict = false` as a document comment directive at the top of your document, or set `schema.strict = false` in your `tombi.toml`.
    at pyproject.toml:476:1
Warning: In strict mode, `tool.tox` does not allow "requires" key. Please add `"additionalProperties": true` to the location where `tool.tox` is defined in https://www.schemastore.org/partial-tox.json, or add `#:tombi schema.strict = false` as a document comment directive at the top of your document, or set `schema.strict = false` in your `tombi.toml`.
    at pyproject.toml:487:1
Warning: In strict mode, `tool.tox` does not allow "skip_missing_interpreters" key. Please add `"additionalProperties": true` to the location where `tool.tox` is defined in https://www.schemastore.org/partial-tox.json, or add `#:tombi schema.strict = false` as a document comment directive at the top of your document, or set `schema.strict = false` in your `tombi.toml`.
    at pyproject.toml:493:1
Warning: In strict mode, `tool.tox` does not allow "env" key. Please add `"additionalProperties": true` to the location where `tool.tox` is defined in https://www.schemastore.org/partial-tox.json, or add `#:tombi schema.strict = false` as a document comment directive at the top of your document, or set `schema.strict = false` in your `tombi.toml`.
    at pyproject.toml:495:1
Warning: In strict mode, `tool.tox` does not allow "env_run_base" key. Please add `"additionalProperties": true` to the location where `tool.tox` is defined in https://www.schemastore.org/partial-tox.json, or add `#:tombi schema.strict = false` as a document comment directive at the top of your document, or set `schema.strict = false` in your `tombi.toml`.
    at pyproject.toml:618:1
1 file linted successfully

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug:normalaffects many people or has quite an impact

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions