Skip to content

Feature requrest [I can do it myself if allowed]: Allow configuration of pytest-examples from pyproject.toml #73

Description

@Danipulok

Summary

Hey everyone!

I use pytest-examples in my small library and I see that at least pydantic-ai uses it
So I would like to make this library better
My initial PR was to enable pytest-examples on Windows, and now I would like to make it configurable via pyproject.toml

Here are examples of how I currently do this in my own library:

Example of how I pass my configurations:
https://github.com/Danipulok/pydantic-jsonschema/blob/3d14999a72bc873f3879cbbf30fe43cd6c6035ca/tests/test_docs.py#L12-L42

Example of the pyproject.toml I use:
https://github.com/Danipulok/pydantic-jsonschema/blob/3d14999a72bc873f3879cbbf30fe43cd6c6035ca/pyproject.toml#L257-L263

If allowed, I will see what options should be enabled etc., and simply will pass then as I do in my own code, but inside the library.

PS

I'm ready to help and would like to make this library better, so I can update all the deps, QOL, typehints and etc.
For this I would need someone to guide me (a little bit, I'm pretty independent) and merge PRs
I'm sure that samuelcolvin is pretty busy, but maybe someone from pydantic team would be able to spend like 10 minutes a day for this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions