beancount-format 0.1.20__tar.gz → 0.1.21__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 (62) hide show
  1. {beancount_format-0.1.20 → beancount_format-0.1.21}/Cargo.lock +6 -6
  2. {beancount_format-0.1.20 → beancount_format-0.1.21}/Cargo.toml +1 -1
  3. {beancount_format-0.1.20 → beancount_format-0.1.21}/PKG-INFO +1 -1
  4. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/src/format.rs +1 -1
  5. {beancount_format-0.1.20 → beancount_format-0.1.21}/pyproject.toml +1 -1
  6. {beancount_format-0.1.20 → beancount_format-0.1.21}/LICENSE +0 -0
  7. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/Cargo.toml +0 -0
  8. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/src/configuration/configuration.rs +0 -0
  9. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/src/configuration/mod.rs +0 -0
  10. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/src/configuration/new_line_kind.rs +0 -0
  11. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/src/lib.rs +0 -0
  12. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/src/parse.rs +0 -0
  13. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/applies_configured_crlf_newlines.config.json +0 -0
  14. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/applies_configured_crlf_newlines.expected.bean +0 -0
  15. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/applies_configured_crlf_newlines.input.bean +0 -0
  16. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/caps_blank_lines_between_directives.expected.bean +0 -0
  17. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/caps_blank_lines_between_directives.input.bean +0 -0
  18. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/formats_all_directives.config.json +0 -0
  19. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/formats_all_directives.expected.bean +0 -0
  20. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/formats_all_directives.input.bean +0 -0
  21. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/formats_transaction_preserves_postings.expected.bean +0 -0
  22. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/formats_transaction_preserves_postings.input.bean +0 -0
  23. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/formats_without_changes_returns_none.expected.bean +0 -0
  24. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/formats_without_changes_returns_none.input.bean +0 -0
  25. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/normalizes_tabs_and_trailing_spaces.expected.bean +0 -0
  26. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/normalizes_tabs_and_trailing_spaces.input.bean +0 -0
  27. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/preserve-meta.expected.bean +0 -0
  28. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/preserve-meta.input.bean +0 -0
  29. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/preserve_comments.expected.bean +0 -0
  30. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/preserve_comments.input.bean +0 -0
  31. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/preserve_file_path_header.expected.bean +0 -0
  32. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/preserve_file_path_header.input.bean +0 -0
  33. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/support_input_without_eol.expected.bean +0 -0
  34. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/support_input_without_eol.input.bean +0 -0
  35. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format_cases.rs +0 -0
  36. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter-cli/Cargo.toml +0 -0
  37. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter-cli/src/lib.rs +0 -0
  38. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter-cli/src/main.rs +0 -0
  39. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter-cli/tests/cli_e2e.rs +0 -0
  40. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter-py/Cargo.toml +0 -0
  41. {beancount_format-0.1.20 → beancount_format-0.1.21}/crates/beancount-formatter-py/src/lib.rs +0 -0
  42. {beancount_format-0.1.20 → beancount_format-0.1.21}/patches/tree-sitter-language/Cargo.toml +0 -0
  43. {beancount_format-0.1.20 → beancount_format-0.1.21}/patches/tree-sitter-language/LICENSE +0 -0
  44. {beancount_format-0.1.20 → beancount_format-0.1.21}/patches/tree-sitter-language/README.md +0 -0
  45. {beancount_format-0.1.20 → beancount_format-0.1.21}/patches/tree-sitter-language/build.rs +0 -0
  46. {beancount_format-0.1.20 → beancount_format-0.1.21}/patches/tree-sitter-language/src/language.rs +0 -0
  47. {beancount_format-0.1.20 → beancount_format-0.1.21}/patches/tree-sitter-language/wasm/include/assert.h +0 -0
  48. {beancount_format-0.1.20 → beancount_format-0.1.21}/patches/tree-sitter-language/wasm/include/ctype.h +0 -0
  49. {beancount_format-0.1.20 → beancount_format-0.1.21}/patches/tree-sitter-language/wasm/include/endian.h +0 -0
  50. {beancount_format-0.1.20 → beancount_format-0.1.21}/patches/tree-sitter-language/wasm/include/inttypes.h +0 -0
  51. {beancount_format-0.1.20 → beancount_format-0.1.21}/patches/tree-sitter-language/wasm/include/stdint.h +0 -0
  52. {beancount_format-0.1.20 → beancount_format-0.1.21}/patches/tree-sitter-language/wasm/include/stdio.h +0 -0
  53. {beancount_format-0.1.20 → beancount_format-0.1.21}/patches/tree-sitter-language/wasm/include/stdlib.h +0 -0
  54. {beancount_format-0.1.20 → beancount_format-0.1.21}/patches/tree-sitter-language/wasm/include/string.h +0 -0
  55. {beancount_format-0.1.20 → beancount_format-0.1.21}/patches/tree-sitter-language/wasm/include/wctype.h +0 -0
  56. {beancount_format-0.1.20 → beancount_format-0.1.21}/patches/tree-sitter-language/wasm/src/stdio.c +0 -0
  57. {beancount_format-0.1.20 → beancount_format-0.1.21}/patches/tree-sitter-language/wasm/src/stdlib.c +0 -0
  58. {beancount_format-0.1.20 → beancount_format-0.1.21}/patches/tree-sitter-language/wasm/src/string.c +0 -0
  59. {beancount_format-0.1.20 → beancount_format-0.1.21}/python/README.md +0 -0
  60. {beancount_format-0.1.20 → beancount_format-0.1.21}/python/src/beancount_format/__init__.py +0 -0
  61. {beancount_format-0.1.20 → beancount_format-0.1.21}/python/src/beancount_format/beancount_format.pyi +0 -0
  62. {beancount_format-0.1.20 → beancount_format-0.1.21}/python/src/beancount_format/py.typed +0 -0
@@ -128,7 +128,7 @@ checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
128
128
 
129
129
  [[package]]
130
130
  name = "beancount-formatter"
131
- version = "0.1.20"
131
+ version = "0.1.21"
132
132
  dependencies = [
133
133
  "anyhow",
134
134
  "beancount-parser",
@@ -140,7 +140,7 @@ dependencies = [
140
140
 
141
141
  [[package]]
142
142
  name = "beancount-formatter-cli"
143
- version = "0.1.20"
143
+ version = "0.1.21"
144
144
  dependencies = [
145
145
  "anyhow",
146
146
  "assert_cmd",
@@ -154,7 +154,7 @@ dependencies = [
154
154
 
155
155
  [[package]]
156
156
  name = "beancount-formatter-py"
157
- version = "0.1.20"
157
+ version = "0.1.21"
158
158
  dependencies = [
159
159
  "beancount-formatter",
160
160
  "beancount-formatter-cli",
@@ -408,7 +408,7 @@ dependencies = [
408
408
 
409
409
  [[package]]
410
410
  name = "dprint-plugin-beancount"
411
- version = "0.1.20"
411
+ version = "0.1.21"
412
412
  dependencies = [
413
413
  "anyhow",
414
414
  "beancount-formatter",
@@ -671,9 +671,9 @@ checksum = "17359afc20d7ab31fdb42bb844c8b3bb1dabd7dcf7e68428492da7f16966fcef"
671
671
 
672
672
  [[package]]
673
673
  name = "portable-atomic"
674
- version = "1.13.0"
674
+ version = "1.13.1"
675
675
  source = "registry+https://github.com/rust-lang/crates.io-index"
676
- checksum = "f89776e4d69bb58bc6993e99ffa1d11f228b839984854c7daeb5d37f87cbe950"
676
+ checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
677
677
 
678
678
  [[package]]
679
679
  name = "ppv-lite86"
@@ -3,7 +3,7 @@ members = ["crates/*"]
3
3
  resolver = "3"
4
4
 
5
5
  [workspace.package]
6
- version = "0.1.20"
6
+ version = "0.1.21"
7
7
  authors = ["Trim21 <trim21.me@gmail.com>"]
8
8
  edition = "2024"
9
9
  homepage = "https://github.com/trim21/beancount-format"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: beancount-format
3
- Version: 0.1.20
3
+ Version: 0.1.21
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python
6
6
  Classifier: Programming Language :: Python :: 3
@@ -471,7 +471,7 @@ fn format_content(path: Option<&str>, content: &str, formatting_config: &Configu
471
471
  if let Some(prev_end) = prev_end_line {
472
472
  let start_line = directive_start_line(dir, &content);
473
473
  let mut blank_lines = start_line.saturating_sub(prev_end + 1).min(2);
474
- let txn_min = if (prev_is_txn && !is_txn) || (!prev_is_txn && is_txn) {
474
+ let txn_min = if (prev_is_txn && is_txn) || (prev_is_txn && !is_txn) || (!prev_is_txn && is_txn) {
475
475
  1
476
476
  } else {
477
477
  0
@@ -4,7 +4,7 @@ build-backend = "maturin"
4
4
 
5
5
  [project]
6
6
  name = "beancount-format"
7
- version = "0.1.20"
7
+ version = "0.1.21"
8
8
  description = "Beancount formatter powered by dprint-plugin-beancount"
9
9
  authors = [{ name = "trim21", email = "trim21.me@gmail.com" }]
10
10
  license = { file = "LICENSE" }