wexample-filestate-python 8.2.1__tar.gz → 9.0.0__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 (95) hide show
  1. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/PKG-INFO +6 -6
  2. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/README.md +3 -3
  3. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/pyproject.toml +3 -3
  4. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/utils/python_constants_utils.py +3 -3
  5. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/utils/python_iterable_utils.py +1 -1
  6. {wexample_filestate_python-8.2.1/tests/helpers → wexample_filestate_python-9.0.0/tests/helper}/test_package.py +8 -8
  7. {wexample_filestate_python-8.2.1/tests/helpers → wexample_filestate_python-9.0.0/tests/helper}/test_toml.py +14 -14
  8. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/__init__.py +0 -0
  9. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/__pycache__/__init__.py +0 -0
  10. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/common/__init__.py +0 -0
  11. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/common/__pycache__/__init__.py +0 -0
  12. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/common/pipy_gateway.py +0 -0
  13. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/config_option/__init__.py +0 -0
  14. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/config_option/__pycache__/__init__.py +0 -0
  15. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/config_option/mixin/__init__.py +0 -0
  16. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/config_option/mixin/__pycache__/__init__.py +0 -0
  17. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/config_option/mixin/with_stdout_wrapping_mixin.py +0 -0
  18. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/config_value/__init__.py +0 -0
  19. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/config_value/__pycache__/__init__.py +0 -0
  20. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/config_value/python_config_value.py +0 -0
  21. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/const/__init__.py +0 -0
  22. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/const/__pycache__/__init__.py +0 -0
  23. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/const/name_pattern.py +0 -0
  24. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/const/path.py +0 -0
  25. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/const/python_file.py +0 -0
  26. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/event/__init__.py +0 -0
  27. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/event/src/__init__.py +0 -0
  28. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/event/src/wexample_event/__init__.py +0 -0
  29. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/file/__init__.py +0 -0
  30. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/file/__pycache__/__init__.py +0 -0
  31. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/file/python_file.py +0 -0
  32. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/file/python_test_stub_file.py +0 -0
  33. {wexample_filestate_python-8.2.1/src/wexample_filestate_python/helpers → wexample_filestate_python-9.0.0/src/wexample_filestate_python/helper}/__init__.py +0 -0
  34. {wexample_filestate_python-8.2.1/src/wexample_filestate_python/helpers → wexample_filestate_python-9.0.0/src/wexample_filestate_python/helper}/__pycache__/__init__.py +0 -0
  35. {wexample_filestate_python-8.2.1/src/wexample_filestate_python/helpers → wexample_filestate_python-9.0.0/src/wexample_filestate_python/helper}/package.py +0 -0
  36. {wexample_filestate_python-8.2.1/src/wexample_filestate_python/helpers → wexample_filestate_python-9.0.0/src/wexample_filestate_python/helper}/python/__init__.py +0 -0
  37. {wexample_filestate_python-8.2.1/src/wexample_filestate_python/helpers → wexample_filestate_python-9.0.0/src/wexample_filestate_python/helper}/toml.py +0 -0
  38. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/option/__init__.py +0 -0
  39. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/option/__pycache__/__init__.py +0 -0
  40. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/option/python/__init__.py +0 -0
  41. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/option/python/abstract_python_file_content_option.py +0 -0
  42. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/option/python/add_future_annotations_option.py +0 -0
  43. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/option/python/add_return_types_option.py +0 -0
  44. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/option/python/class_name_matches_file_name_option.py +0 -0
  45. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/option/python/fix_attrs_option.py +0 -0
  46. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/option/python/fix_blank_lines_option.py +0 -0
  47. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/option/python/format_option.py +0 -0
  48. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/option/python/fstringify_option.py +0 -0
  49. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/option/python/modernize_typing_option.py +0 -0
  50. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/option/python/order_class_attributes_option.py +0 -0
  51. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/option/python/order_class_docstring_option.py +0 -0
  52. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/option/python/order_class_methods_option.py +0 -0
  53. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/option/python/order_constants_option.py +0 -0
  54. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/option/python/order_iterable_items_option.py +0 -0
  55. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/option/python/order_main_guard_option.py +0 -0
  56. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/option/python/order_module_docstring_option.py +0 -0
  57. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/option/python/order_module_functions_option.py +0 -0
  58. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/option/python/order_module_metadata_option.py +0 -0
  59. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/option/python/order_type_checking_block_option.py +0 -0
  60. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/option/python/relocate_imports_option.py +0 -0
  61. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/option/python/remove_unused_option.py +0 -0
  62. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/option/python/sort_imports_option.py +0 -0
  63. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/option/python/unquote_annotations_option.py +0 -0
  64. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/option/python_option.py +0 -0
  65. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/options_provider/__init__.py +0 -0
  66. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/options_provider/__pycache__/__init__.py +0 -0
  67. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/options_provider/python_options_provider.py +0 -0
  68. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/py.typed +0 -0
  69. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/utils/__init__.py +0 -0
  70. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/utils/__pycache__/__init__.py +0 -0
  71. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/utils/cst_cache.py +0 -0
  72. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/utils/python_attrs_utils.py +0 -0
  73. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/utils/python_blank_lines_utils.py +0 -0
  74. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/utils/python_class_attributes_utils.py +0 -0
  75. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/utils/python_class_docstring_utils.py +0 -0
  76. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/utils/python_class_methods_utils.py +0 -0
  77. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/utils/python_docstring_utils.py +0 -0
  78. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/utils/python_functions_utils.py +0 -0
  79. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/utils/python_main_guard_utils.py +0 -0
  80. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/utils/python_module_metadata_utils.py +0 -0
  81. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/utils/python_type_checking_utils.py +0 -0
  82. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/utils/relocate_imports/__init__.py +0 -0
  83. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/utils/relocate_imports/__pycache__/__init__.py +0 -0
  84. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/utils/relocate_imports/python_import_rewriter.py +0 -0
  85. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/utils/relocate_imports/python_localize_runtime_imports.py +0 -0
  86. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/utils/relocate_imports/python_parser_import_index.py +0 -0
  87. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/utils/relocate_imports/python_runtime_symbol_collector.py +0 -0
  88. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/src/wexample_filestate_python/utils/relocate_imports/python_usage_collector.py +0 -0
  89. {wexample_filestate_python-8.2.1/tests/helpers → wexample_filestate_python-9.0.0/tests/helper}/__init__.py +0 -0
  90. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/tests/tests/__init__.py +0 -0
  91. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/tests/unit/__init__.py +0 -0
  92. {wexample_filestate_python-8.2.1/tests/unit/helpers → wexample_filestate_python-9.0.0/tests/unit/helper}/__init__.py +0 -0
  93. {wexample_filestate_python-8.2.1/tests/unit/helpers → wexample_filestate_python-9.0.0/tests/unit/helper}/test_package.py +0 -0
  94. {wexample_filestate_python-8.2.1/tests/unit/helpers → wexample_filestate_python-9.0.0/tests/unit/helper}/test_toml.py +0 -0
  95. {wexample_filestate_python-8.2.1 → wexample_filestate_python-9.0.0}/tests/wexample_tests/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wexample-filestate-python
3
- Version: 8.2.1
3
+ Version: 9.0.0
4
4
  Summary: Helpers for Python.
5
5
  Author-Email: weeger <contact@wexample.com>
6
6
  License: MIT
@@ -18,8 +18,8 @@ Requires-Dist: isort
18
18
  Requires-Dist: libcst
19
19
  Requires-Dist: packaging
20
20
  Requires-Dist: tomli
21
- Requires-Dist: wexample-api>=6.6.0
22
- Requires-Dist: wexample-filestate>=15.0.0
21
+ Requires-Dist: wexample-api>=6.8.0
22
+ Requires-Dist: wexample-filestate>=16.0.0
23
23
  Provides-Extra: dev
24
24
  Requires-Dist: pytest; extra == "dev"
25
25
  Requires-Dist: pytest-cov; extra == "dev"
@@ -27,7 +27,7 @@ Description-Content-Type: text/markdown
27
27
 
28
28
  # filestate_python
29
29
 
30
- Version: 8.2.1
30
+ Version: 9.0.0
31
31
 
32
32
  Helpers for Python.
33
33
 
@@ -116,8 +116,8 @@ Visit the [Wexample Suite documentation](https://docs.wexample.com) for the comp
116
116
  - libcst:
117
117
  - packaging:
118
118
  - tomli:
119
- - wexample-api: >=6.6.0
120
- - wexample-filestate: >=15.0.0
119
+ - wexample-api: >=6.8.0
120
+ - wexample-filestate: >=16.0.0
121
121
 
122
122
  ## Versioning & Compatibility Policy
123
123
 
@@ -1,6 +1,6 @@
1
1
  # filestate_python
2
2
 
3
- Version: 8.2.1
3
+ Version: 9.0.0
4
4
 
5
5
  Helpers for Python.
6
6
 
@@ -89,8 +89,8 @@ Visit the [Wexample Suite documentation](https://docs.wexample.com) for the comp
89
89
  - libcst:
90
90
  - packaging:
91
91
  - tomli:
92
- - wexample-api: >=6.6.0
93
- - wexample-filestate: >=15.0.0
92
+ - wexample-api: >=6.8.0
93
+ - wexample-filestate: >=16.0.0
94
94
 
95
95
  ## Versioning & Compatibility Policy
96
96
 
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
6
6
 
7
7
  [project]
8
8
  name = "wexample-filestate-python"
9
- version = "8.2.1"
9
+ version = "9.0.0"
10
10
  description = "Helpers for Python."
11
11
  authors = [
12
12
  { name = "weeger", email = "contact@wexample.com" },
@@ -27,8 +27,8 @@ dependencies = [
27
27
  "libcst",
28
28
  "packaging",
29
29
  "tomli",
30
- "wexample-api>=6.6.0",
31
- "wexample-filestate>=15.0.0",
30
+ "wexample-api>=6.8.0",
31
+ "wexample-filestate>=16.0.0",
32
32
  ]
33
33
 
34
34
  [project.readme]
@@ -161,7 +161,7 @@ def sort_constants_block(
161
161
  sorted block (even if a different node becomes first after sorting),
162
162
  and clear leading_lines of subsequent nodes to avoid extra blank lines.
163
163
  """
164
- from wexample_filestate.helpers.flag import flag_exists
164
+ from wexample_filestate.helper.flag import flag_exists
165
165
 
166
166
  # Preserve the entire leading_lines per node; additionally, capture the flag
167
167
  # comment lines from whichever node currently holds them so we can keep the flag
@@ -269,7 +269,7 @@ def _is_upper_name(name: str) -> bool:
269
269
 
270
270
  def _prev_line_has_flag(body_list: list[cst.CSTNode], index: int) -> bool:
271
271
  """Return True if the previous sibling is an EmptyLine whose comment contains the flag."""
272
- from wexample_filestate.helpers.flag import flag_exists
272
+ from wexample_filestate.helper.flag import flag_exists
273
273
 
274
274
  if index - 1 < 0:
275
275
  return False
@@ -285,7 +285,7 @@ def _stmt_has_flag(stmt: cst.SimpleStatementLine, src: str) -> bool:
285
285
  We look into leading_lines comments, else fallback to searching raw src segment
286
286
  of the statement's leading trivia.
287
287
  """
288
- from wexample_filestate.helpers.flag import flag_exists
288
+ from wexample_filestate.helper.flag import flag_exists
289
289
 
290
290
  # Check libcst leading_lines comments
291
291
  for el in stmt.leading_lines:
@@ -1,6 +1,6 @@
1
1
  from __future__ import annotations
2
2
 
3
- from wexample_filestate.helpers.flag import flag_exists
3
+ from wexample_filestate.helper.flag import flag_exists
4
4
 
5
5
  FLAG_NAME = "python-iterable-sort"
6
6
 
@@ -21,7 +21,7 @@ setup(
21
21
 
22
22
 
23
23
  def test_package_get_dependencies_keeps_only_local(tmp_path: Path) -> None:
24
- from wexample_filestate_python.helpers.package import package_get_dependencies
24
+ from wexample_filestate_python.helper.package import package_get_dependencies
25
25
 
26
26
  pkg_a = tmp_path / "a"
27
27
  pkg_b = tmp_path / "b"
@@ -37,14 +37,14 @@ def test_package_get_dependencies_keeps_only_local(tmp_path: Path) -> None:
37
37
 
38
38
 
39
39
  def test_package_get_dependencies_raises_on_missing_dir(tmp_path: Path) -> None:
40
- from wexample_filestate_python.helpers.package import package_get_dependencies
40
+ from wexample_filestate_python.helper.package import package_get_dependencies
41
41
 
42
42
  with pytest.raises(ValueError, match=r"does not exist or is not a directory"):
43
43
  package_get_dependencies(tmp_path / "nope")
44
44
 
45
45
 
46
46
  def test_package_get_info_prefers_pyproject(tmp_path: Path) -> None:
47
- from wexample_filestate_python.helpers.package import package_get_info
47
+ from wexample_filestate_python.helper.package import package_get_info
48
48
 
49
49
  (tmp_path / "pyproject.toml").write_text(_PYPROJECT)
50
50
  name, deps = package_get_info(tmp_path)
@@ -53,13 +53,13 @@ def test_package_get_info_prefers_pyproject(tmp_path: Path) -> None:
53
53
 
54
54
 
55
55
  def test_package_get_info_returns_none_without_metadata(tmp_path: Path) -> None:
56
- from wexample_filestate_python.helpers.package import package_get_info
56
+ from wexample_filestate_python.helper.package import package_get_info
57
57
 
58
58
  assert package_get_info(tmp_path) is None
59
59
 
60
60
 
61
61
  def test_package_normalize_name_strips_version_and_extras() -> None:
62
- from wexample_filestate_python.helpers.package import package_normalize_name
62
+ from wexample_filestate_python.helper.package import package_normalize_name
63
63
 
64
64
  assert package_normalize_name("My-Package>=1.0") == "my-package"
65
65
  assert package_normalize_name("pkg[extra]") == "pkg"
@@ -67,7 +67,7 @@ def test_package_normalize_name_strips_version_and_extras() -> None:
67
67
 
68
68
 
69
69
  def test_package_parse_setup_extracts_name_and_deps(tmp_path: Path) -> None:
70
- from wexample_filestate_python.helpers.package import package_parse_setup
70
+ from wexample_filestate_python.helper.package import package_parse_setup
71
71
 
72
72
  setup_path = tmp_path / "setup.py"
73
73
  setup_path.write_text(_SETUP_PY)
@@ -77,7 +77,7 @@ def test_package_parse_setup_extracts_name_and_deps(tmp_path: Path) -> None:
77
77
 
78
78
 
79
79
  def test_package_parse_toml_extracts_name_and_deps(tmp_path: Path) -> None:
80
- from wexample_filestate_python.helpers.package import package_parse_toml
80
+ from wexample_filestate_python.helper.package import package_parse_toml
81
81
 
82
82
  toml_path = tmp_path / "pyproject.toml"
83
83
  toml_path.write_text(_PYPROJECT)
@@ -87,7 +87,7 @@ def test_package_parse_toml_extracts_name_and_deps(tmp_path: Path) -> None:
87
87
 
88
88
 
89
89
  def test_package_parse_toml_returns_empty_on_invalid(tmp_path: Path) -> None:
90
- from wexample_filestate_python.helpers.package import package_parse_toml
90
+ from wexample_filestate_python.helper.package import package_parse_toml
91
91
 
92
92
  toml_path = tmp_path / "pyproject.toml"
93
93
  toml_path.write_text("not valid toml = =")
@@ -4,7 +4,7 @@ import pytest
4
4
 
5
5
 
6
6
  def test_toml_ensure_array_creates_when_missing() -> None:
7
- from wexample_filestate_python.helpers.toml import toml_ensure_array
7
+ from wexample_filestate_python.helper.toml import toml_ensure_array
8
8
 
9
9
  tbl: dict = {}
10
10
  arr, changed = toml_ensure_array(tbl, "deps")
@@ -15,7 +15,7 @@ def test_toml_ensure_array_creates_when_missing() -> None:
15
15
  def test_toml_ensure_array_returns_existing_unchanged() -> None:
16
16
  from tomlkit import array
17
17
 
18
- from wexample_filestate_python.helpers.toml import toml_ensure_array
18
+ from wexample_filestate_python.helper.toml import toml_ensure_array
19
19
 
20
20
  existing = array()
21
21
  tbl = {"deps": existing}
@@ -27,7 +27,7 @@ def test_toml_ensure_array_returns_existing_unchanged() -> None:
27
27
  def test_toml_ensure_table_creates_nested_path() -> None:
28
28
  from tomlkit import document
29
29
 
30
- from wexample_filestate_python.helpers.toml import toml_ensure_table
30
+ from wexample_filestate_python.helper.toml import toml_ensure_table
31
31
 
32
32
  doc = document()
33
33
  table, changed = toml_ensure_table(doc, ["tool", "pdm", "build"])
@@ -38,7 +38,7 @@ def test_toml_ensure_table_creates_nested_path() -> None:
38
38
  def test_toml_ensure_table_existing_empty_path_unchanged() -> None:
39
39
  from tomlkit import document
40
40
 
41
- from wexample_filestate_python.helpers.toml import toml_ensure_table
41
+ from wexample_filestate_python.helper.toml import toml_ensure_table
42
42
 
43
43
  doc = document()
44
44
  toml_ensure_table(doc, ["tool", "x"])
@@ -49,7 +49,7 @@ def test_toml_ensure_table_existing_empty_path_unchanged() -> None:
49
49
  def test_toml_ensure_table_existing_non_empty_path_unchanged() -> None:
50
50
  from tomlkit import document
51
51
 
52
- from wexample_filestate_python.helpers.toml import toml_ensure_table
52
+ from wexample_filestate_python.helper.toml import toml_ensure_table
53
53
 
54
54
  doc = document()
55
55
  toml_ensure_table(doc, ["tool", "x"])
@@ -61,14 +61,14 @@ def test_toml_ensure_table_existing_non_empty_path_unchanged() -> None:
61
61
  def test_toml_ensure_table_raises_on_empty_path() -> None:
62
62
  from tomlkit import document
63
63
 
64
- from wexample_filestate_python.helpers.toml import toml_ensure_table
64
+ from wexample_filestate_python.helper.toml import toml_ensure_table
65
65
 
66
66
  with pytest.raises(ValueError, match=r"non-empty list"):
67
67
  toml_ensure_table(document(), [])
68
68
 
69
69
 
70
70
  def test_toml_get_string_value_from_plain_value() -> None:
71
- from wexample_filestate_python.helpers.toml import toml_get_string_value
71
+ from wexample_filestate_python.helper.toml import toml_get_string_value
72
72
 
73
73
  assert toml_get_string_value(42) == "42"
74
74
 
@@ -76,7 +76,7 @@ def test_toml_get_string_value_from_plain_value() -> None:
76
76
  def test_toml_get_string_value_from_string_item() -> None:
77
77
  from tomlkit import item
78
78
 
79
- from wexample_filestate_python.helpers.toml import toml_get_string_value
79
+ from wexample_filestate_python.helper.toml import toml_get_string_value
80
80
 
81
81
  assert toml_get_string_value(item("hello")) == "hello"
82
82
 
@@ -84,7 +84,7 @@ def test_toml_get_string_value_from_string_item() -> None:
84
84
  def test_toml_set_array_multiline_replaces_value() -> None:
85
85
  from tomlkit.items import Array
86
86
 
87
- from wexample_filestate_python.helpers.toml import toml_set_array_multiline
87
+ from wexample_filestate_python.helper.toml import toml_set_array_multiline
88
88
 
89
89
  tbl: dict = {}
90
90
  arr = toml_set_array_multiline(tbl, "deps", ["a", "b"])
@@ -96,7 +96,7 @@ def test_toml_set_array_multiline_replaces_value() -> None:
96
96
  def test_toml_sort_string_array_already_sorted_returns_false() -> None:
97
97
  from tomlkit import array
98
98
 
99
- from wexample_filestate_python.helpers.toml import toml_sort_string_array
99
+ from wexample_filestate_python.helper.toml import toml_sort_string_array
100
100
 
101
101
  arr = array()
102
102
  arr.append("a")
@@ -105,7 +105,7 @@ def test_toml_sort_string_array_already_sorted_returns_false() -> None:
105
105
 
106
106
 
107
107
  def test_toml_sort_string_array_non_array_returns_false() -> None:
108
- from wexample_filestate_python.helpers.toml import toml_sort_string_array
108
+ from wexample_filestate_python.helper.toml import toml_sort_string_array
109
109
 
110
110
  assert toml_sort_string_array(["not", "an", "array"]) is False
111
111
 
@@ -113,7 +113,7 @@ def test_toml_sort_string_array_non_array_returns_false() -> None:
113
113
  def test_toml_sort_string_array_preserves_multiline_style() -> None:
114
114
  from tomlkit import array
115
115
 
116
- from wexample_filestate_python.helpers.toml import toml_sort_string_array
116
+ from wexample_filestate_python.helper.toml import toml_sort_string_array
117
117
 
118
118
  arr = array()
119
119
  arr.append("b")
@@ -126,7 +126,7 @@ def test_toml_sort_string_array_preserves_multiline_style() -> None:
126
126
  def test_toml_sort_string_array_preserves_single_line_style() -> None:
127
127
  from tomlkit import array
128
128
 
129
- from wexample_filestate_python.helpers.toml import toml_sort_string_array
129
+ from wexample_filestate_python.helper.toml import toml_sort_string_array
130
130
 
131
131
  arr = array()
132
132
  arr.append("b")
@@ -139,7 +139,7 @@ def test_toml_sort_string_array_preserves_single_line_style() -> None:
139
139
  def test_toml_sort_string_array_sorts_case_insensitive() -> None:
140
140
  from tomlkit import array
141
141
 
142
- from wexample_filestate_python.helpers.toml import toml_sort_string_array
142
+ from wexample_filestate_python.helper.toml import toml_sort_string_array
143
143
 
144
144
  arr = array()
145
145
  arr.append("Banana")