beancount-ast 0.0.1a2__tar.gz → 0.0.1a3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. {beancount_ast-0.0.1a2 → beancount_ast-0.0.1a3}/AGENTS.md +1 -7
  2. {beancount_ast-0.0.1a2 → beancount_ast-0.0.1a3}/Cargo.lock +0 -540
  3. {beancount_ast-0.0.1a2 → beancount_ast-0.0.1a3}/Cargo.toml +0 -8
  4. {beancount_ast-0.0.1a2 → beancount_ast-0.0.1a3}/PKG-INFO +1 -1
  5. beancount_ast-0.0.1a3/py-src/beancount_ast/__init__.py +84 -0
  6. {beancount_ast-0.0.1a2 → beancount_ast-0.0.1a3}/py-src/beancount_ast/_ast.pyi +137 -165
  7. beancount_ast-0.0.1a3/py-src/beancount_ast/_directive.py +59 -0
  8. {beancount_ast-0.0.1a2 → beancount_ast-0.0.1a3}/pyproject.toml +1 -1
  9. {beancount_ast-0.0.1a2 → beancount_ast-0.0.1a3}/src/lib.rs +0 -110
  10. beancount_ast-0.0.1a2/py-src/beancount_ast/__init__.py +0 -83
  11. beancount_ast-0.0.1a2/scripts/generate_ast_stubs.py +0 -58
  12. beancount_ast-0.0.1a2/src/bin/stub_gen.rs +0 -6
  13. {beancount_ast-0.0.1a2 → beancount_ast-0.0.1a3}/.github/renovate.json +0 -0
  14. {beancount_ast-0.0.1a2 → beancount_ast-0.0.1a3}/.github/workflows/_build_wheels.yaml +0 -0
  15. {beancount_ast-0.0.1a2 → beancount_ast-0.0.1a3}/.github/workflows/autofix.yaml +0 -0
  16. {beancount_ast-0.0.1a2 → beancount_ast-0.0.1a3}/.github/workflows/ci.yml +0 -0
  17. {beancount_ast-0.0.1a2 → beancount_ast-0.0.1a3}/.github/workflows/release.yaml +0 -0
  18. {beancount_ast-0.0.1a2 → beancount_ast-0.0.1a3}/.github/workflows/tests.yml +0 -0
  19. {beancount_ast-0.0.1a2 → beancount_ast-0.0.1a3}/.gitignore +0 -0
  20. {beancount_ast-0.0.1a2 → beancount_ast-0.0.1a3}/.pre-commit-config.yaml +0 -0
  21. {beancount_ast-0.0.1a2 → beancount_ast-0.0.1a3}/README.md +0 -0
  22. {beancount_ast-0.0.1a2 → beancount_ast-0.0.1a3}/dprint.json +0 -0
  23. {beancount_ast-0.0.1a2 → beancount_ast-0.0.1a3}/py-src/beancount_ast/py.typed +0 -0
  24. {beancount_ast-0.0.1a2 → beancount_ast-0.0.1a3}/taskfile.yaml +0 -0
  25. {beancount_ast-0.0.1a2 → beancount_ast-0.0.1a3}/tests/__init__.py +0 -0
  26. {beancount_ast-0.0.1a2 → beancount_ast-0.0.1a3}/tests/__snapshots__/test_parse_snapshots.ambr +0 -0
  27. {beancount_ast-0.0.1a2 → beancount_ast-0.0.1a3}/tests/test_parse_snapshots.py +0 -0
@@ -10,7 +10,7 @@
10
10
  - Converts Rust parser nodes (`beancount_parser::ast::*`) into `Py*` structs.
11
11
  - Public Python entrypoints are `parse_string` and `parse_file`.
12
12
  - `py-src/beancount_ast/__init__.py`: re-exports symbols from `beancount_ast._ast`.
13
- - `py-src/beancount_ast/_ast.pyi`: stubs of `src/lib.rs`, when you change any interface, you should also update it.
13
+ - `py-src/beancount_ast/__init__.pyi`: provide stubs to downstream users. then real type-stubs of `beancount_ast._ast`.
14
14
  - `tests/test_parse_snapshots.py`: snapshot-style API tests using `pytest` + `syrupy`.
15
15
 
16
16
  ## Workflows (local + CI-aligned)
@@ -32,12 +32,6 @@
32
32
  3) Extend the conversion layer (e.g. `directive_to_py(...)`).
33
33
  4) Update the `Directive` type alias used for stubs (see the `stub-gen` block at the end of `src/lib.rs`).
34
34
 
35
- ## Stub generation
36
- - The stub generator binary is `src/bin/stub_gen.rs` and is only available with the `stub-gen` feature.
37
- - Typical command:
38
- - `cargo run --bin stub_gen --features stub-gen`
39
- - The generated output updates `py-src/beancount_ast/_ast.pyi`.
40
-
41
35
  ## Formatting / linting
42
36
  - Non-code config formatting uses `dprint` (see `dprint.json`) and is enforced via pre-commit.
43
37
  - Python formatting/linting uses `ruff` + `black` (see `.pre-commit-config.yaml`).