Skip to content

Conversation

@chrimaho
Copy link

This pull request adds support for validating configuration of the docstring-format-checker tool in pyproject.toml by introducing a new JSON schema and integrating it into the overall pyproject.json schema. The main focus is on enabling schema validation for both [tool.dfc] and [tool.docstring-format-checker] sections.

Schema integration for docstring-format-checker:

  • Added a new schema file partial-dfc.json that defines configuration options for the docstring-format-checker tool, including properties like allow_undefined_sections, require_docstrings, check_private, validate_param_types, optional_style, and a detailed sections array for custom docstring section validation.
  • Updated pyproject.json to reference the new partial-dfc.json schema under both dfc and docstring-format-checker keys, allowing users to configure the tool using either [tool.dfc] or [tool.docstring-format-checker] in their pyproject.toml.

- Introduce `partial-dfc.json` schema for the `docstring-format-checker` package.
- Reference the new schema in `pyproject.json` under `dfc` and `docstring-format-checker`.
- Provide detailed properties for configuration options in the schema.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant