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

feat: Generate expr method signatures, docs #3600

Merged
merged 86 commits into from
Oct 12, 2024
Merged
Changes from 25 commits
Commits
Show all changes
86 commits
Select commit Hold shift + click to select a range
a60e8cc
feat: Adds `altair.tools.schemapi.vega_expr`
dangotbanned Sep 19, 2024
e7dca1c
chore: Add imports
dangotbanned Sep 19, 2024
49d328d
feat: Add download/ast parse wrapper
dangotbanned Sep 19, 2024
11d759d
feat: Define constants
dangotbanned Sep 19, 2024
0109c8c
feat: Define some `re` patterns
dangotbanned Sep 19, 2024
1f736be
feat: Extend `utils.RSTParse` to support external tokens
dangotbanned Sep 19, 2024
e26083a
feat: Adds `VegaExprParam`
dangotbanned Sep 19, 2024
6bb4c27
feat: Adds `VegaExprNode`
dangotbanned Sep 19, 2024
d1bf708
feat: Adds `parse_expressions`
dangotbanned Sep 19, 2024
3e62bd9
feat(DRAFT): Add `VegaExprNode._doc_post_process`
dangotbanned Sep 19, 2024
67c6a1e
fix: Don't include `"*args"` in `parameter_names`
dangotbanned Sep 19, 2024
815404e
feat(DRAFT): Adds `VegaExprNode.to_signature`
dangotbanned Sep 19, 2024
51e569e
feat: Finish `to_signature` params component
dangotbanned Sep 19, 2024
b3006bc
feat(DRAFT): Add `render_expr_method`
dangotbanned Sep 19, 2024
54f7db0
refactor: `FunctionExpression` -> `Expression` for annotation only
dangotbanned Sep 19, 2024
328cc98
feat: Handle `(expr|SchemaBase).copy` conflict
dangotbanned Sep 20, 2024
6e1897d
fix: Disable `string_` overloads
dangotbanned Sep 20, 2024
fb33243
fix: Classify more cases as variadic
dangotbanned Sep 20, 2024
1ce1567
fix: Use quotes for `node.name`
dangotbanned Sep 20, 2024
b88221f
feat(DRAFT): Full `expr` module generation
dangotbanned Sep 20, 2024
0a09936
feat: Strip include tags from docs
dangotbanned Sep 21, 2024
9377598
feat: Split doc summary, wrap body
dangotbanned Sep 21, 2024
8e88cd2
chore: Remove some notes
dangotbanned Sep 21, 2024
f5b3717
fix: Replace `vega` docs relative links
dangotbanned Sep 21, 2024
7ec0505
feat: Convert inline links to references
dangotbanned Sep 21, 2024
29f08dc
refactor: Rewrite `VegaExprNode` as a regular class
dangotbanned Sep 23, 2024
f6cc776
feat: Replace all `Vega` function refs in code blocks
dangotbanned Sep 23, 2024
321a0cd
docs: Update doc for `is_overloaded`
dangotbanned Sep 23, 2024
90f7b0a
docs: Add note to `_doc_fmt`
dangotbanned Sep 23, 2024
36ac45a
refactor: Simplify `VegaExprNode.is_callable`
dangotbanned Sep 23, 2024
56dfa27
refactor: Simplify `VegaExprNode._split_signature_tokens`
dangotbanned Sep 23, 2024
9cab1a1
docs: Add doc for `deep_split_punctuation`
dangotbanned Sep 23, 2024
283eff6
Merge remote-tracking branch 'upstream/main' into vega-expr-gen
dangotbanned Sep 23, 2024
497f2fd
feat: Refine `ReplaceMany`
dangotbanned Sep 24, 2024
b0b1952
docs: Add doc for `ReplaceMany`
dangotbanned Sep 24, 2024
2d5271e
refactor: Replace `VegaExprNode.parameter_names` property with a filt…
dangotbanned Sep 24, 2024
849f428
refactor: Tidy up `"clamprange"` -> `"clampRange"` special case
dangotbanned Sep 24, 2024
bed8d0f
refactor: Reorder `with_` methods, add docs
dangotbanned Sep 24, 2024
264e4a6
refactor: Rename reorder `_split_markers`
dangotbanned Sep 24, 2024
7c24e46
refactor: Move url expansion to renderer
dangotbanned Sep 24, 2024
051bcb2
feat: Adds initial `vega_expr` api
dangotbanned Sep 24, 2024
5e75051
build: run `generate-schema-wrapper`
dangotbanned Sep 24, 2024
222d03e
chore: Add note to `test_expr.py`
dangotbanned Sep 24, 2024
f7a47a5
fix: Add trailing comma to single arg methods
dangotbanned Sep 24, 2024
9238fb6
test: Adds `test_dummy_expr_funcs`
dangotbanned Sep 24, 2024
7311fdf
test: Refactor `test_expr`
dangotbanned Sep 25, 2024
6077075
fix: Move some imports to `TYPE_CHECKING` block
dangotbanned Sep 25, 2024
0094596
chore: Delete `expr.dummy.py`
dangotbanned Sep 25, 2024
16a92a4
test: Remove old `test_expr` functions
dangotbanned Sep 25, 2024
17da9d0
build: Generate new `alt.expr.__init__.py`
dangotbanned Sep 25, 2024
21d13e7
fix(typing): Resolve some revealed issues
dangotbanned Sep 25, 2024
7364605
Merge remote-tracking branch 'upstream/main' into vega-expr-gen
dangotbanned Sep 25, 2024
7e0db68
refactor: Move `.md`, `.rst` utils to `tools.markup.py`
dangotbanned Sep 25, 2024
9aaf862
chore: Remove debugging code
dangotbanned Sep 25, 2024
9215d7d
refactor: Replace `render_expr_method` with a method
dangotbanned Sep 25, 2024
7a10e3d
refactor: Add signature template, rename others
dangotbanned Sep 25, 2024
e3273f6
docs: Update metaclass description
dangotbanned Sep 25, 2024
1a7d241
refactor: Rename `_ConstExpressionType` -> `_ExprMeta`
dangotbanned Sep 25, 2024
cfb676f
refactor: Align `VegaExpr(Node|Param)` apis
dangotbanned Sep 25, 2024
6fd32e9
refactor: Factor out to `italics_to_backticks`
dangotbanned Sep 26, 2024
8fb9341
Merge branch 'main' into vega-expr-gen
dangotbanned Sep 26, 2024
b2aeecb
feat: Strip template markup earlier
dangotbanned Sep 26, 2024
fde31e2
refactor: Move `unescape` to `render_tokens`
dangotbanned Sep 26, 2024
d4d9145
refactor: Move `_doc_post_process` -> `with_doc`
dangotbanned Sep 26, 2024
433611b
refactor: Remove redundant branches in `_override_predicate`
dangotbanned Sep 26, 2024
c2af5f4
refactor: Assign names to literals in `_doc_fmt`
dangotbanned Sep 26, 2024
e7e79c9
docs(typing): Add missing annotations
dangotbanned Sep 26, 2024
e20490b
refactor: Final tidy up, renaming
dangotbanned Sep 26, 2024
5929077
fix: Resolve false negatives for `is_callable`
dangotbanned Sep 27, 2024
d2c32a3
Merge branch 'main' into vega-expr-gen
dangotbanned Sep 27, 2024
2f1d199
fix: Correct indent for `expr.screen` reference
dangotbanned Sep 27, 2024
01e61e3
feat: Bump source to add `alt.expr.sort`
dangotbanned Sep 27, 2024
68786cc
Merge branch 'main' into vega-expr-gen
dangotbanned Sep 27, 2024
d75792b
fix: Pin to `vega` release instead of commit hash
dangotbanned Sep 28, 2024
968114e
docs: Include header comment
dangotbanned Sep 28, 2024
061b066
build(DRAFT): Add `vegalite_to_vega_version`
dangotbanned Sep 28, 2024
d95a573
feat: Adds `vl_convert_to_vega_version`, remove `vegalite_to_vega_ver…
dangotbanned Sep 30, 2024
c91b71c
Merge remote-tracking branch 'upstream/main' into vega-expr-gen
dangotbanned Oct 2, 2024
8294623
Merge branch 'main' into vega-expr-gen
dangotbanned Oct 3, 2024
6f810c8
Merge branch 'main' into vega-expr-gen
dangotbanned Oct 5, 2024
554410c
Merge branch 'main' into vega-expr-gen
dangotbanned Oct 6, 2024
b0f1164
refactor: Use `vlc.get_vega_version()`
dangotbanned Oct 7, 2024
5a08189
revert: Remove `vl_convert_to_vega_version`
dangotbanned Oct 7, 2024
0969b30
refactor: Factor out `download_expressions_md`
dangotbanned Oct 7, 2024
ad1ac8f
refactor: `tools.schemapi.vega_expr.py` -> `tools.vega_expr.py`
dangotbanned Oct 12, 2024
91180d1
docs: Add module docstring for `vega_expr.py`
dangotbanned Oct 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading