Skip to content

Cycling hotfix2 - #29

Merged
cvanelteren merged 4 commits into
Ultraplot:mainfrom
cvanelteren:cycling-hotfix2
Jan 27, 2025
Merged

cvanelteren merged 4 commits into
Ultraplot:mainfrom
cvanelteren:cycling-hotfix2

Conversation

@cvanelteren

Copy link
Copy Markdown
Collaborator

I merge too quickly with the other PR -- these address the points raided by @beckermr

@cvanelteren

Copy link
Copy Markdown
Collaborator Author

Not entirely sure why the tests are failing -- they look fine here. The tests inside test_axes are acting up, related to #27

@cvanelteren

Copy link
Copy Markdown
Collaborator Author

Ah I see what the issue is; the pytest-mpl stuff needs to be removed from the workflow.

@beckermr

Copy link
Copy Markdown
Collaborator

It may be worth vendoring our own pytest plugin or making our own decorator. We'll be heavy users.

@cvanelteren
cvanelteren requested a review from beckermr January 26, 2025 15:22
@cvanelteren

Copy link
Copy Markdown
Collaborator Author

It may be worth vendoring our own pytest plugin or making our own decorator. We'll be heavy users.

Good idea! Was working already working on this and currently have an issue tracker on pytest-mpl.

@cvanelteren

cvanelteren commented Jan 27, 2025 •

Copy link
Copy Markdown
Collaborator Author

I figured out that pytest-mpl does in fact allow you to overwrite the style. I have done some local tests and it seems to be working nicely with (in nushell):

pytest --mpl-generate-path=ultraplot/tests/baseline --mpl-default-style (python -c "import ultraplot as plt; print(plt.config.Configurator())")

@beckermr

Copy link
Copy Markdown
Collaborator

Oh nice! Is there a way to set those arguments as a default in our pyproject.toml?

@cvanelteren

Copy link
Copy Markdown
Collaborator Author

Yes will add it in another PR. I do expect that some stuff will most likely break still. I manually inspected the images a few times and some of them still look a bit odd to me but the very fast majority looks great!

@beckermr

Copy link
Copy Markdown
Collaborator

OK, sounds good to me. Let's go ahead with this one despite the tests failing.

@cvanelteren

Copy link
Copy Markdown
Collaborator Author

The failure is related to the fix #33. Should be fine.

@cvanelteren
cvanelteren merged commit 4196fa2 into Ultraplot:main Jan 27, 2025
@cvanelteren
cvanelteren deleted the cycling-hotfix2 branch January 27, 2025 17:26
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.

2 participants