beancount-lsp 0.0.4__tar.gz → 0.0.6__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 (38) hide show
  1. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/Cargo.lock +71 -48
  2. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/Cargo.toml +1 -1
  3. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/PKG-INFO +1 -1
  4. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp/Cargo.toml +5 -5
  5. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp/benches/parse_document.rs +3 -1
  6. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp/benches/semantic_tokens.rs +2 -1
  7. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp/src/providers/completion.rs +1 -1
  8. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/pyproject.toml +1 -1
  9. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/README.md +0 -0
  10. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp/src/checkers/mod.rs +0 -0
  11. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp/src/checkers/python.rs +0 -0
  12. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp/src/checkers/python_script.rs +0 -0
  13. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp/src/checkers/scripts/python_json_checker.py +0 -0
  14. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp/src/doc.rs +0 -0
  15. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp/src/indexer.rs +0 -0
  16. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp/src/lib.rs +0 -0
  17. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp/src/main.rs +0 -0
  18. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp/src/providers/account.rs +0 -0
  19. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp/src/providers/definition.rs +0 -0
  20. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp/src/providers/hover.rs +0 -0
  21. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp/src/providers/mod.rs +0 -0
  22. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp/src/providers/semantic_tokens.rs +0 -0
  23. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp/src/providers/snapshots/beancount_lsp__providers__semantic_tokens__tests__semantic_tokens_snapshot.snap +0 -0
  24. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp/src/server.rs +0 -0
  25. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp/src/test_utils.rs +0 -0
  26. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp/src/text.rs +0 -0
  27. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp/tests/account.rs +0 -0
  28. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp-py/Cargo.toml +0 -0
  29. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp-py/README.md +0 -0
  30. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp-py/py-src/beancount_lsp/__init__.py +0 -0
  31. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp-py/py-src/beancount_lsp/_lsp.pyi +0 -0
  32. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp-py/py-src/beancount_lsp/cli.py +0 -0
  33. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp-py/py-src/beancount_lsp/py.typed +0 -0
  34. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/crates/lsp-py/src/lib.rs +0 -0
  35. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/py-src/beancount_lsp/__init__.py +0 -0
  36. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/py-src/beancount_lsp/_lsp.pyi +0 -0
  37. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/py-src/beancount_lsp/cli.py +0 -0
  38. {beancount_lsp-0.0.4 → beancount_lsp-0.0.6}/py-src/beancount_lsp/py.typed +0 -0
@@ -22,6 +22,15 @@ dependencies = [
22
22
  "memchr",
23
23
  ]
24
24
 
25
+ [[package]]
26
+ name = "alloca"
27
+ version = "0.4.0"
28
+ source = "registry+https://github.com/rust-lang/crates.io-index"
29
+ checksum = "e5a7d05ea6aea7e9e64d25b9156ba2fee3fdd659e34e41063cd2fc7cd020d7f4"
30
+ dependencies = [
31
+ "cc",
32
+ ]
33
+
25
34
  [[package]]
26
35
  name = "allocator-api2"
27
36
  version = "0.2.21"
@@ -86,9 +95,9 @@ dependencies = [
86
95
 
87
96
  [[package]]
88
97
  name = "anyhow"
89
- version = "1.0.100"
98
+ version = "1.0.101"
90
99
  source = "registry+https://github.com/rust-lang/crates.io-index"
91
- checksum = "a23eb6b1614318a8071c9b2521f36b424b2c83db5eb3a0fead4a6c0809af6e61"
100
+ checksum = "5f0e0fee31ef5ed1ba1316088939cea399010ed7731dba877ed44aeb407a75ea"
92
101
 
93
102
  [[package]]
94
103
  name = "ar_archive_writer"
@@ -145,7 +154,7 @@ dependencies = [
145
154
  [[package]]
146
155
  name = "beancount-parser"
147
156
  version = "3.3.0-alpha.0"
148
- source = "git+https://github.com/trim21/beancount.git?rev=04fa3cef8024afe7f4b4f03bcecfb0a86e914172#04fa3cef8024afe7f4b4f03bcecfb0a86e914172"
157
+ source = "git+https://github.com/trim21/beancount.git?rev=e084af487707717c638aafebdc28ef6c4c7ba378#e084af487707717c638aafebdc28ef6c4c7ba378"
149
158
  dependencies = [
150
159
  "anyhow",
151
160
  "chrono",
@@ -328,9 +337,9 @@ dependencies = [
328
337
 
329
338
  [[package]]
330
339
  name = "clap"
331
- version = "4.5.56"
340
+ version = "4.5.57"
332
341
  source = "registry+https://github.com/rust-lang/crates.io-index"
333
- checksum = "a75ca66430e33a14957acc24c5077b503e7d374151b2b4b3a10c83b4ceb4be0e"
342
+ checksum = "6899ea499e3fb9305a65d5ebf6e3d2248c5fab291f300ad0a704fbe142eae31a"
334
343
  dependencies = [
335
344
  "clap_builder",
336
345
  "clap_derive",
@@ -338,9 +347,9 @@ dependencies = [
338
347
 
339
348
  [[package]]
340
349
  name = "clap_builder"
341
- version = "4.5.56"
350
+ version = "4.5.57"
342
351
  source = "registry+https://github.com/rust-lang/crates.io-index"
343
- checksum = "793207c7fa6300a0608d1080b858e5fdbe713cdc1c8db9fb17777d8a13e63df0"
352
+ checksum = "7b12c8b680195a62a8364d16b8447b01b6c2c8f9aaf68bee653be34d4245e238"
344
353
  dependencies = [
345
354
  "anstream",
346
355
  "anstyle",
@@ -386,25 +395,24 @@ dependencies = [
386
395
 
387
396
  [[package]]
388
397
  name = "criterion"
389
- version = "0.5.1"
398
+ version = "0.8.2"
390
399
  source = "registry+https://github.com/rust-lang/crates.io-index"
391
- checksum = "f2b12d017a929603d80db1831cd3a24082f8137ce19c69e6447f54f5fc8d692f"
400
+ checksum = "950046b2aa2492f9a536f5f4f9a3de7b9e2476e575e05bd6c333371add4d98f3"
392
401
  dependencies = [
402
+ "alloca",
393
403
  "anes",
394
404
  "cast",
395
405
  "ciborium",
396
406
  "clap",
397
407
  "criterion-plot",
398
- "is-terminal",
399
408
  "itertools",
400
409
  "num-traits",
401
- "once_cell",
402
410
  "oorandom",
411
+ "page_size",
403
412
  "plotters",
404
413
  "rayon",
405
414
  "regex",
406
415
  "serde",
407
- "serde_derive",
408
416
  "serde_json",
409
417
  "tinytemplate",
410
418
  "walkdir",
@@ -412,9 +420,9 @@ dependencies = [
412
420
 
413
421
  [[package]]
414
422
  name = "criterion-plot"
415
- version = "0.5.0"
423
+ version = "0.8.2"
416
424
  source = "registry+https://github.com/rust-lang/crates.io-index"
417
- checksum = "6b50826342786a51a89e2da3a28f1c32b06e387201bc2d19791f622c673706b1"
425
+ checksum = "d8d80a2f4f5b554395e47b5d8305bc3d27813bacb73493eb1001e8f76dae29ea"
418
426
  dependencies = [
419
427
  "cast",
420
428
  "itertools",
@@ -648,8 +656,8 @@ dependencies = [
648
656
  "aho-corasick",
649
657
  "bstr",
650
658
  "log",
651
- "regex-automata 0.4.13",
652
- "regex-syntax 0.8.8",
659
+ "regex-automata 0.4.14",
660
+ "regex-syntax 0.8.9",
653
661
  ]
654
662
 
655
663
  [[package]]
@@ -706,12 +714,6 @@ version = "0.5.0"
706
714
  source = "registry+https://github.com/rust-lang/crates.io-index"
707
715
  checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
708
716
 
709
- [[package]]
710
- name = "hermit-abi"
711
- version = "0.5.2"
712
- source = "registry+https://github.com/rust-lang/crates.io-index"
713
- checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c"
714
-
715
717
  [[package]]
716
718
  name = "httparse"
717
719
  version = "1.10.1"
@@ -742,17 +744,6 @@ dependencies = [
742
744
  "walkdir",
743
745
  ]
744
746
 
745
- [[package]]
746
- name = "is-terminal"
747
- version = "0.4.17"
748
- source = "registry+https://github.com/rust-lang/crates.io-index"
749
- checksum = "3640c1c38b8e4e43584d8df18be5fc6b0aa314ce6ebf51b53313d4306cca8e46"
750
- dependencies = [
751
- "hermit-abi",
752
- "libc",
753
- "windows-sys 0.61.2",
754
- ]
755
-
756
747
  [[package]]
757
748
  name = "is_terminal_polyfill"
758
749
  version = "1.70.2"
@@ -761,9 +752,9 @@ checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
761
752
 
762
753
  [[package]]
763
754
  name = "itertools"
764
- version = "0.10.5"
755
+ version = "0.13.0"
765
756
  source = "registry+https://github.com/rust-lang/crates.io-index"
766
- checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473"
757
+ checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
767
758
  dependencies = [
768
759
  "either",
769
760
  ]
@@ -890,6 +881,16 @@ version = "11.1.5"
890
881
  source = "registry+https://github.com/rust-lang/crates.io-index"
891
882
  checksum = "d6790f58c7ff633d8771f42965289203411a5e5c68388703c06e14f24770b41e"
892
883
 
884
+ [[package]]
885
+ name = "page_size"
886
+ version = "0.6.0"
887
+ source = "registry+https://github.com/rust-lang/crates.io-index"
888
+ checksum = "30d5b2194ed13191c1999ae0704b7839fb18384fa22e49b57eeaa97d79ce40da"
889
+ dependencies = [
890
+ "libc",
891
+ "winapi",
892
+ ]
893
+
893
894
  [[package]]
894
895
  name = "parking_lot_core"
895
896
  version = "0.9.12"
@@ -1188,14 +1189,14 @@ dependencies = [
1188
1189
 
1189
1190
  [[package]]
1190
1191
  name = "regex"
1191
- version = "1.12.2"
1192
+ version = "1.12.3"
1192
1193
  source = "registry+https://github.com/rust-lang/crates.io-index"
1193
- checksum = "843bc0191f75f3e22651ae5f1e72939ab2f72a4bc30fa80a066bd66edefc24d4"
1194
+ checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276"
1194
1195
  dependencies = [
1195
1196
  "aho-corasick",
1196
1197
  "memchr",
1197
- "regex-automata 0.4.13",
1198
- "regex-syntax 0.8.8",
1198
+ "regex-automata 0.4.14",
1199
+ "regex-syntax 0.8.9",
1199
1200
  ]
1200
1201
 
1201
1202
  [[package]]
@@ -1211,13 +1212,13 @@ dependencies = [
1211
1212
 
1212
1213
  [[package]]
1213
1214
  name = "regex-automata"
1214
- version = "0.4.13"
1215
+ version = "0.4.14"
1215
1216
  source = "registry+https://github.com/rust-lang/crates.io-index"
1216
- checksum = "5276caf25ac86c8d810222b3dbb938e512c55c6831a10f3e6ed1c93b84041f1c"
1217
+ checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f"
1217
1218
  dependencies = [
1218
1219
  "aho-corasick",
1219
1220
  "memchr",
1220
- "regex-syntax 0.8.8",
1221
+ "regex-syntax 0.8.9",
1221
1222
  ]
1222
1223
 
1223
1224
  [[package]]
@@ -1228,9 +1229,9 @@ checksum = "dbb5fb1acd8a1a18b3dd5be62d25485eb770e05afb408a9627d14d451bae12da"
1228
1229
 
1229
1230
  [[package]]
1230
1231
  name = "regex-syntax"
1231
- version = "0.8.8"
1232
+ version = "0.8.9"
1232
1233
  source = "registry+https://github.com/rust-lang/crates.io-index"
1233
- checksum = "7a2d987857b319362043e95f5353c0535c1f58eec5336fdfcf626430af7def58"
1234
+ checksum = "a96887878f22d7bad8a3b6dc5b7440e0ada9a245242924394987b21cf2210a4c"
1234
1235
 
1235
1236
  [[package]]
1236
1237
  name = "rend"
@@ -1817,6 +1818,22 @@ dependencies = [
1817
1818
  "wasm-bindgen",
1818
1819
  ]
1819
1820
 
1821
+ [[package]]
1822
+ name = "winapi"
1823
+ version = "0.3.9"
1824
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1825
+ checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
1826
+ dependencies = [
1827
+ "winapi-i686-pc-windows-gnu",
1828
+ "winapi-x86_64-pc-windows-gnu",
1829
+ ]
1830
+
1831
+ [[package]]
1832
+ name = "winapi-i686-pc-windows-gnu"
1833
+ version = "0.4.0"
1834
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1835
+ checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
1836
+
1820
1837
  [[package]]
1821
1838
  name = "winapi-util"
1822
1839
  version = "0.1.11"
@@ -1826,6 +1843,12 @@ dependencies = [
1826
1843
  "windows-sys 0.61.2",
1827
1844
  ]
1828
1845
 
1846
+ [[package]]
1847
+ name = "winapi-x86_64-pc-windows-gnu"
1848
+ version = "0.4.0"
1849
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1850
+ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
1851
+
1829
1852
  [[package]]
1830
1853
  name = "windows-link"
1831
1854
  version = "0.2.1"
@@ -1940,18 +1963,18 @@ dependencies = [
1940
1963
 
1941
1964
  [[package]]
1942
1965
  name = "zerocopy"
1943
- version = "0.8.37"
1966
+ version = "0.8.38"
1944
1967
  source = "registry+https://github.com/rust-lang/crates.io-index"
1945
- checksum = "7456cf00f0685ad319c5b1693f291a650eaf345e941d082fc4e03df8a03996ac"
1968
+ checksum = "57cf3aa6855b23711ee9852dfc97dfaa51c45feaba5b645d0c777414d494a961"
1946
1969
  dependencies = [
1947
1970
  "zerocopy-derive",
1948
1971
  ]
1949
1972
 
1950
1973
  [[package]]
1951
1974
  name = "zerocopy-derive"
1952
- version = "0.8.37"
1975
+ version = "0.8.38"
1953
1976
  source = "registry+https://github.com/rust-lang/crates.io-index"
1954
- checksum = "1328722bbf2115db7e19d69ebcc15e795719e2d66b60827c6a69a117365e37a0"
1977
+ checksum = "8a616990af1a287837c4fe6596ad77ef57948f787e46ce28e166facc0cc1cb75"
1955
1978
  dependencies = [
1956
1979
  "proc-macro2",
1957
1980
  "quote",
@@ -4,7 +4,7 @@ members = ["crates/lsp-py"]
4
4
  package.version = "0.0.0"
5
5
 
6
6
  [workspace.dependencies]
7
- beancount-parser = { git = "https://github.com/trim21/beancount.git", rev = "04fa3cef8024afe7f4b4f03bcecfb0a86e914172" }
7
+ beancount-parser = { git = "https://github.com/trim21/beancount.git", rev = "e084af487707717c638aafebdc28ef6c4c7ba378" }
8
8
  ropey = "1.6.1"
9
9
  tokio = { version = "1.49.0", features = ["fs", "io-std", "macros", "rt-multi-thread", "sync"] }
10
10
  tower-lsp-server = "0.23.0"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: beancount-lsp
3
- Version: 0.0.4
3
+ Version: 0.0.6
4
4
  Requires-Dist: beancount>=3,<4
5
5
  Summary: Beancount LSP packaged for Python environments
6
6
  Requires-Python: >=3.10
@@ -11,11 +11,11 @@ default = []
11
11
  pyo3 = ["dep:pyo3"]
12
12
 
13
13
  [dependencies]
14
- anyhow = "1.0.100"
14
+ anyhow = "1.0.101"
15
15
  beancount-parser = { workspace = true }
16
- clap = { version = "4.5.56", features = ["derive"] }
16
+ clap = { version = "4.5.57", features = ["derive"] }
17
17
  glob = "0.3.3"
18
- lru = "0.16.0"
18
+ lru = "0.16.3"
19
19
  pyo3 = { version = "0.28.0", features = ["auto-initialize", "abi3-py310", "generate-import-lib"], optional = true }
20
20
  ropey = { workspace = true }
21
21
  serde = { version = "1.0.228", features = ["derive"] }
@@ -26,8 +26,8 @@ tracing = "0.1.44"
26
26
  tracing-subscriber = { version = "0.3.22", features = ["fmt"] }
27
27
 
28
28
  [dev-dependencies]
29
- criterion = "0.5.1"
30
- insta = { version = "1.39.0", features = ["glob"] }
29
+ criterion = "0.8.2"
30
+ insta = { version = "1.46.3", features = ["glob"] }
31
31
  tempfile = "3.24.0"
32
32
 
33
33
  [[bench]]
@@ -2,7 +2,9 @@ use std::path::PathBuf;
2
2
  use std::process::Command;
3
3
  use std::sync::OnceLock;
4
4
 
5
- use criterion::{BatchSize, Criterion, black_box, criterion_group, criterion_main};
5
+ use std::hint::black_box;
6
+
7
+ use criterion::{BatchSize, Criterion, criterion_group, criterion_main};
6
8
  use tower_lsp_server::ls_types::Uri as Url;
7
9
 
8
10
  fn generate_sample() -> &'static str {
@@ -1,8 +1,9 @@
1
+ use std::hint::black_box;
1
2
  use std::path::PathBuf;
2
3
  use std::process::Command;
3
4
  use std::sync::OnceLock;
4
5
 
5
- use criterion::{Criterion, black_box, criterion_group, criterion_main};
6
+ use criterion::{Criterion, criterion_group, criterion_main};
6
7
 
7
8
  fn generate_sample() -> &'static str {
8
9
  static SAMPLE: OnceLock<String> = OnceLock::new();
@@ -11,7 +11,7 @@ use crate::providers::account::account_at_position;
11
11
  use crate::server::{Document, documents_bfs, find_document};
12
12
  use crate::text::{byte_to_lsp_position, lsp_position_to_byte};
13
13
 
14
- const DATE_KEYWORDS: &[&str] = &["custom", "balance", "open", "close", "note", "price"];
14
+ const DATE_KEYWORDS: &[&str] = &["custom", "balance", "open", "close", "note", "price", "pad"];
15
15
  const ROOT_KEYWORDS: &[&str] = &[
16
16
  "include", "option", "pushtag", "poptag", "pushmeta", "popmeta",
17
17
  ];
@@ -5,7 +5,7 @@ build-backend = "maturin"
5
5
  [project]
6
6
  name = "beancount-lsp"
7
7
  description = "Beancount LSP packaged for Python environments"
8
- version = "0.0.4"
8
+ version = "0.0.6"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
11
11
  dependencies = ["beancount>=3,<4"]
File without changes