Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Update pyproject.toml, fix lints, typing #10

Merged
merged 11 commits into from
Aug 19, 2024

Conversation

dangotbanned
Copy link
Member

Resolves #9

@@ -90,7 +93,7 @@ def test_altairplotdirective(app):
// embed when document is loaded, to ensure vega library is available
// this works on all modern browsers, except IE8 and older
document.addEventListener("DOMContentLoaded", function(event) {
var spec = {"config": {"view": {"continuousWidth": 300, "continuousHeight": 300}}, "data": {"values": [{"x": "A", "y": 5}, {"x": "B", "y": 3}, {"x": "C", "y": 6}, {"x": "D", "y": 7}, {"x": "E", "y": 2}]}, "mark": {"type": "bar"}, "encoding": {"x": {"field": "x", "type": "nominal"}, "y": {"field": "y", "type": "quantitative"}}, "$schema": "https://vega.github.io/schema/vega-lite/v5.8.0.json"};
var spec = {"config": {"view": {"continuousWidth": 300, "continuousHeight": 300}}, "data": {"values": [{"x": "A", "y": 5}, {"x": "B", "y": 3}, {"x": "C", "y": 6}, {"x": "D", "y": 7}, {"x": "E", "y": 2}]}, "mark": {"type": "bar"}, "encoding": {"x": {"field": "x", "type": "nominal"}, "y": {"field": "y", "type": "quantitative"}}, "$schema": "https://vega.github.io/schema/vega-lite/v5.20.1.json"};
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally these wouldn't be set manually, but fixing that can happen in another PR.

@dangotbanned
Copy link
Member Author

dangotbanned commented Aug 16, 2024

@binste I'm not sure how clear the commit trail is, but all of the changes I've made in altairplot.py are one or more of:

  • minor performance increase
  • fixing lints
  • fixing typing
  • reducing repetition

There should be no functional differences (assuming the current test suite is sufficient)

Copy link
Contributor

@binste binste left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM! Didn't spot any issues with the changes, commits were clear, and it's great to have the code bases more aligned :) This repo hasn't gotten much attention since we took it out of the Altair repo.

I leave the PR open in case you want to drop Python 3.8 support at the same time. up to you.

@dangotbanned
Copy link
Member Author

dangotbanned commented Aug 18, 2024

Thanks, LGTM! Didn't spot any issues with the changes, commits were clear, and it's great to have the code bases more aligned :) This repo hasn't gotten much attention since we took it out of the Altair repo.

I leave the PR open in case you want to drop Python 3.8 support at the same time. up to you.

Thanks @binste

I think bumping the 3.8 refs will trigger a lot of additional ruff violations/fixes.
I'm happy to handle that in another PR since this is passing everything for now?

Edit

Only one fix, which was a version guard I added earlier in this PR.

Copy link
Contributor

@binste binste left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks again!

@binste binste merged commit cc6330f into vega:main Aug 19, 2024
5 checks passed
@dangotbanned dangotbanned deleted the update-pyproject-540 branch August 19, 2024 19:23
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.

Keep pyproject.toml in sync with altair
2 participants