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

オープン
#73 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

@Danipulok がすでに取り組んでいます。

2026年10月6日 から。

  • #85 @Danipulok による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
64/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
testing-qa

調査の方向性

まず、pydantic-jsonschema で参照されている tests/test_docs.py の設定と、その pyproject.toml の例を比較します。どの pytest-examples オプションを設定可能にすべきかを特定し、同等の設定が pyproject.toml を通じて機能することを、サポート対象の設定を網羅するテストで検証します。

索引モデルが issue の本文から書いたものです。

説明

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?

主要言語
Python
スター
181
フォーク
29
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pydantic/pytest-examples のほかの issue

pydantic/pytest-examples の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。