beancount-format 0.1.19__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.
- {beancount_format-0.1.19 → beancount_format-0.1.21}/Cargo.lock +6 -6
- {beancount_format-0.1.19 → beancount_format-0.1.21}/Cargo.toml +1 -1
- {beancount_format-0.1.19 → beancount_format-0.1.21}/PKG-INFO +1 -1
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/src/format.rs +1 -1
- {beancount_format-0.1.19 → beancount_format-0.1.21}/pyproject.toml +1 -1
- {beancount_format-0.1.19 → beancount_format-0.1.21}/LICENSE +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/Cargo.toml +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/src/configuration/configuration.rs +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/src/configuration/mod.rs +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/src/configuration/new_line_kind.rs +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/src/lib.rs +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/src/parse.rs +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/applies_configured_crlf_newlines.config.json +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/applies_configured_crlf_newlines.expected.bean +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/applies_configured_crlf_newlines.input.bean +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/caps_blank_lines_between_directives.expected.bean +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/caps_blank_lines_between_directives.input.bean +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/formats_all_directives.config.json +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/formats_all_directives.expected.bean +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/formats_all_directives.input.bean +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/formats_transaction_preserves_postings.expected.bean +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/formats_transaction_preserves_postings.input.bean +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/formats_without_changes_returns_none.expected.bean +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/formats_without_changes_returns_none.input.bean +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/normalizes_tabs_and_trailing_spaces.expected.bean +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/normalizes_tabs_and_trailing_spaces.input.bean +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/preserve-meta.expected.bean +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/preserve-meta.input.bean +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/preserve_comments.expected.bean +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/preserve_comments.input.bean +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/preserve_file_path_header.expected.bean +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/preserve_file_path_header.input.bean +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/support_input_without_eol.expected.bean +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format-and-check/support_input_without_eol.input.bean +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format_cases.rs +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter-cli/Cargo.toml +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter-cli/src/lib.rs +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter-cli/src/main.rs +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter-cli/tests/cli_e2e.rs +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter-py/Cargo.toml +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter-py/src/lib.rs +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/patches/tree-sitter-language/Cargo.toml +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/patches/tree-sitter-language/LICENSE +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/patches/tree-sitter-language/README.md +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/patches/tree-sitter-language/build.rs +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/patches/tree-sitter-language/src/language.rs +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/patches/tree-sitter-language/wasm/include/assert.h +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/patches/tree-sitter-language/wasm/include/ctype.h +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/patches/tree-sitter-language/wasm/include/endian.h +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/patches/tree-sitter-language/wasm/include/inttypes.h +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/patches/tree-sitter-language/wasm/include/stdint.h +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/patches/tree-sitter-language/wasm/include/stdio.h +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/patches/tree-sitter-language/wasm/include/stdlib.h +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/patches/tree-sitter-language/wasm/include/string.h +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/patches/tree-sitter-language/wasm/include/wctype.h +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/patches/tree-sitter-language/wasm/src/stdio.c +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/patches/tree-sitter-language/wasm/src/stdlib.c +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/patches/tree-sitter-language/wasm/src/string.c +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/python/README.md +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/python/src/beancount_format/__init__.py +0 -0
- {beancount_format-0.1.19 → beancount_format-0.1.21}/python/src/beancount_format/beancount_format.pyi +0 -0
- {beancount_format-0.1.19 → 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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
674
|
+
version = "1.13.1"
|
|
675
675
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
676
|
-
checksum = "
|
|
676
|
+
checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
|
|
677
677
|
|
|
678
678
|
[[package]]
|
|
679
679
|
name = "ppv-lite86"
|
{beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/src/format.rs
RENAMED
|
@@ -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.
|
|
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" }
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter/tests/format_cases.rs
RENAMED
|
File without changes
|
{beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter-cli/Cargo.toml
RENAMED
|
File without changes
|
{beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter-cli/src/lib.rs
RENAMED
|
File without changes
|
{beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter-cli/src/main.rs
RENAMED
|
File without changes
|
{beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter-cli/tests/cli_e2e.rs
RENAMED
|
File without changes
|
{beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter-py/Cargo.toml
RENAMED
|
File without changes
|
{beancount_format-0.1.19 → beancount_format-0.1.21}/crates/beancount-formatter-py/src/lib.rs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{beancount_format-0.1.19 → beancount_format-0.1.21}/patches/tree-sitter-language/src/language.rs
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{beancount_format-0.1.19 → beancount_format-0.1.21}/patches/tree-sitter-language/wasm/src/stdio.c
RENAMED
|
File without changes
|
{beancount_format-0.1.19 → beancount_format-0.1.21}/patches/tree-sitter-language/wasm/src/stdlib.c
RENAMED
|
File without changes
|
{beancount_format-0.1.19 → beancount_format-0.1.21}/patches/tree-sitter-language/wasm/src/string.c
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{beancount_format-0.1.19 → beancount_format-0.1.21}/python/src/beancount_format/beancount_format.pyi
RENAMED
|
File without changes
|
|
File without changes
|