Roadmap for `v1.0.0`
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 20/100
- Issue-Typ
- Feature
- Klarheit
- Muss geklärt werden
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- python
- Bereich
- testing-qa
Rechercherichtung
Beginne mit der Prüfung der Konfigurationsoptionen und der in diesem Issue aufgeführten ungelösten Breaking- und Non-Breaking-Änderungen und untersuche anschließend pytest_mpl/plugin.py am genannten remove_text-Einstiegspunkt. Das Issue erfordert Entscheidungen der Maintainer zu Umfang, Warnzeiträumen und Standardwerten, bevor mit der Implementierung begonnen werden kann; als abgeschlossen würde es einen abgestimmten Fahrplan und entsprechende Änderungen erfordern.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
I reviewed all the configuration options which are used in the code and found quite a few inconsistencies. I have listed proposed fixes for them, separated into breaking and non-breaking changes. We can add warning for the breaking changes now, and then change in v1.0.0.
Let's discuss these lists. Are there any items which should be added or removed? For the breaking changes, how long of a warning period should we have? For any of them, should we only start warning in v1.0.0 and then change in v1.1.0?
Review of configuration options
| Option | kwarg | CLI | ini | default |
|---|---|---|---|---|
| Enable testing | N/A | --mpl |
N/A | False |
| Enable baseline image generation, at specified directory path (relative to where pytest was run) | N/A | --mpl-generate-path |
N/A | None |
| Enable baseline hash generation, at specified file path (relative to where pytest was run) | N/A | --mpl-generate-hash-library |
N/A | None |
| Directory containing baseline images (relative to the test file) |
baseline_dir |
--mpl-baseline-path (relative to where pytest was run) |
baseline/ |
|
Whether --mpl-baseline-path should also be relative to the test file |
N/A | --mpl-baseline-relative |
N/A | False |
| Filename of the baseline image | filename |
N/A | N/A | test name |
| Whether to include the module name in the baseline image filename | ? | mpl-use-full-test-name |
False |
|
| File containing baseline hashes (relative to the test file) |
hash_library |
--mpl-hash-library |
no hash comparison | |
| RMS tolerance | tolerance |
2 |
||
| Whether to standardise metadata | deterministic |
True (PNG: False) |
||
| kwargs to pass to savefig | savefig_kwargs |
N/A | N/A | {} |
| Matplotlib style | style |
classic |
||
| Whether to remove axis tick labels | remove_text |
False |
||
| Matplotlib backend | backend |
agg |
||
| Directory to write testing artifacts to (relative to where pytest was run) |
N/A | --mpl-results-path |
mpl-results-path |
temp dir |
| Whether to save result images for passing tests | N/A | --mpl-results-always |
mpl-results-always |
False (True if generating a HTML summary) |
| Which test summaries to generate, if any | N/A | --mpl-generate-summary={html,json,basic-html} |
None |
Notes
- N/A are options which we don't think should exist.
- Empty boxes are options which we do think should exist.
- ? are options which could exist but would be of limited use.
- Due to how paths are computed by Python, the baseline directory and hash library paths can be absolute. In this case
--mpl-baseline-relativeand what directory the paths are interpreted to be relative to does not have any effect. - Path specified in kwargs should be relative to the test file, and paths specified in CLI and ini options should be relative to where pytest was run.
Non-breaking changes
- Document that backend can be specified. #199
- Document the option to use the full test name. #199
- Document that
mpl-use-full-test-nameini overrides thefilenamekwarg. #199 - Add
mpl-baseline-pathini option (relative to where pytest was run). #181 - Expand
mpl-use-full-test-nameini option to CLI (and maybe kwarg). #181 - Add
mpl-hash-libraryini option (relative to where pytest was run). #181 - Add
--mpl-default-toleranceCLI andmpl-default-toleranceini options. #181 - Add CLI and ini options for
deterministic. #197 - Add
--mpl-default-styleCLI andmpl-default-styleini options. #181 - Add CLI and ini options for
remove_text. - Add CLI and ini options for
backend. #181 - Add
generate-summaryini option for generating test summaries. #181
Breaking changes
-
--mpl-hash-libraryshould be relative to where pytest was run (to match--mpl-baseline-path). - Local
hash_librarykwarg should take precedence over global--mpl-hash-libraryCLI option. #154 - Deprecate the use of multiple hash libraries in the same pytest run (not necessary because files are small and include the full module path anyway). #154
- Deprecate the use of multiple testing modes in the same pytest run (e.g. warn if one test only has hash comparison while the others only have image comparison)
- Use Matplotlib's default style instead of
'classic'. - Change the default RMS tolerance to
0. - Enable deterministic PNG files by default.
- Deprecate
remove_textkwarg and replace with better namedremove_ticks_and_titles - (???) Add a
remove_textkwarg that actually removes all text. - (???) Rename
baseline_dir/--mpl-baseline-pathto have consistent name.
- Vorherrschende Sprache
- Python
- Sterne
- 274
- Forks
- 53
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus matplotlib/pytest-mpl
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
matplotlib/pytest-mpl#264 · 2 Kommentare · 1 Reaktion ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
matplotlib/pytest-mpl#263 · 3 Kommentare ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 55/100
matplotlib/pytest-mpl#262 · 6 Kommentare ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
matplotlib/pytest-mpl#261 · 1 Kommentar ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
matplotlib/pytest-mpl#257 · 2 Kommentare ·
Alle Issues in matplotlib/pytest-mpl
Ähnliche Issues
-
[Doc]: Feedback for `/zh-cn/v0.30.0/tutorials/models/Qwen3.6-35B-A3B.html`A3社区配置和基线不一致,社区配置也达不到基线Offendocumentation
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
vllm-project/vllm-ascend#24429 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
simnJS/AnyPS5#735 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
sqlreview.sh: `remap` with no review draft seeds one, and `delta` prints the diff then exits 2Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
nq-rdl/agent-extensions#623 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
vortex-data/vortex#12633 ·
Maintainer antworten meist innerhalb von 1 Tag
-
needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
gke-labs/kube-agents#7955 ·
Maintainer antworten meist innerhalb von 1 Tag