wexample-filestate-python 0.0.55__tar.gz → 0.0.57__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 (87) hide show
  1. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/PKG-INFO +72 -9
  2. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/README.md +69 -6
  3. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/pyproject.toml +3 -3
  4. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/config_option/mixin/__init__.py +0 -0
  5. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/config_option/mixin/with_stdout_wrapping_mixin.py +0 -0
  6. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/config_value/__init__.py +0 -0
  7. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/config_value/python_config_value.py +0 -0
  8. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/const/path.py +0 -0
  9. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/const/python_file.py +0 -0
  10. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/event/__init__.py +0 -0
  11. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/event/src/__init__.py +0 -0
  12. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/event/src/wexample_event/__init__.py +0 -0
  13. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/helpers/python/__init__.py +0 -0
  14. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/option/__init__.py +0 -0
  15. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/option/python/__init__.py +0 -0
  16. wexample_filestate_python-0.0.57/src/wexample_filestate_python/option/python/abstract_python_file_content_option.py +11 -0
  17. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/option/python/add_future_annotations_option.py +0 -0
  18. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/option/python/add_return_types_option.py +0 -0
  19. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/option/python/class_name_matches_file_name_option.py +0 -0
  20. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/option/python/fix_attrs_option.py +0 -0
  21. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/option/python/fix_blank_lines_option.py +0 -0
  22. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/option/python/format_option.py +0 -0
  23. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/option/python/fstringify_option.py +0 -0
  24. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/option/python/modernize_typing_option.py +0 -0
  25. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/option/python/order_class_attributes_option.py +0 -0
  26. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/option/python/order_class_docstring_option.py +0 -0
  27. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/option/python/order_class_methods_option.py +0 -0
  28. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/option/python/order_constants_option.py +0 -0
  29. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/option/python/order_iterable_items_option.py +0 -0
  30. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/option/python/order_main_guard_option.py +0 -0
  31. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/option/python/order_module_docstring_option.py +0 -0
  32. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/option/python/order_module_functions_option.py +0 -0
  33. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/option/python/order_module_metadata_option.py +0 -0
  34. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/option/python/order_type_checking_block_option.py +0 -0
  35. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/option/python/relocate_imports_option.py +0 -0
  36. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/option/python/remove_unused_option.py +0 -0
  37. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/option/python/sort_imports_option.py +0 -0
  38. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/option/python/unquote_annotations_option.py +0 -0
  39. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/option/python_option.py +1 -0
  40. wexample_filestate_python-0.0.55/src/wexample_filestate_python/option/python/abstract_python_file_content_option.py +0 -47
  41. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/__init__.py +0 -0
  42. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/__pycache__/__init__.py +0 -0
  43. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/common/__init__.py +0 -0
  44. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/common/__pycache__/__init__.py +0 -0
  45. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/common/pipy_gateway.py +0 -0
  46. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/config_option/__init__.py +0 -0
  47. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/config_option/__pycache__/__init__.py +0 -0
  48. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/config_option/mixin/__pycache__/__init__.py +0 -0
  49. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/config_value/__pycache__/__init__.py +0 -0
  50. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/const/__init__.py +0 -0
  51. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/const/__pycache__/__init__.py +0 -0
  52. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/const/name_pattern.py +0 -0
  53. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/file/__init__.py +0 -0
  54. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/file/__pycache__/__init__.py +0 -0
  55. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/file/python_file.py +0 -0
  56. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/helpers/__init__.py +0 -0
  57. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/helpers/__pycache__/__init__.py +0 -0
  58. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/helpers/package.py +0 -0
  59. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/helpers/toml.py +0 -0
  60. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/option/__pycache__/__init__.py +0 -0
  61. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/options_provider/__init__.py +0 -0
  62. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/options_provider/__pycache__/__init__.py +0 -0
  63. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/options_provider/python_options_provider.py +0 -0
  64. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/py.typed +0 -0
  65. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/utils/__init__.py +0 -0
  66. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/utils/__pycache__/__init__.py +0 -0
  67. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/utils/python_attrs_utils.py +0 -0
  68. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/utils/python_blank_lines_utils.py +0 -0
  69. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/utils/python_class_attributes_utils.py +0 -0
  70. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/utils/python_class_docstring_utils.py +0 -0
  71. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/utils/python_class_methods_utils.py +0 -0
  72. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/utils/python_constants_utils.py +0 -0
  73. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/utils/python_docstring_utils.py +0 -0
  74. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/utils/python_functions_utils.py +0 -0
  75. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/utils/python_iterable_utils.py +0 -0
  76. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/utils/python_main_guard_utils.py +0 -0
  77. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/utils/python_module_metadata_utils.py +0 -0
  78. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/utils/python_type_checking_utils.py +0 -0
  79. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/utils/relocate_imports/__init__.py +0 -0
  80. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/utils/relocate_imports/__pycache__/__init__.py +0 -0
  81. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/utils/relocate_imports/python_import_rewriter.py +0 -0
  82. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/utils/relocate_imports/python_localize_runtime_imports.py +0 -0
  83. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/utils/relocate_imports/python_parser_import_index.py +0 -0
  84. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/utils/relocate_imports/python_runtime_symbol_collector.py +0 -0
  85. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/src/wexample_filestate_python/utils/relocate_imports/python_usage_collector.py +0 -0
  86. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/tests/tests/__init__.py +0 -0
  87. {wexample_filestate_python-0.0.55 → wexample_filestate_python-0.0.57}/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: 0.0.55
3
+ Version: 0.0.57
4
4
  Summary: Helpers for Python.
5
5
  Author-Email: weeger <contact@wexample.com>
6
6
  License: MIT
@@ -19,8 +19,8 @@ Requires-Dist: libcst
19
19
  Requires-Dist: packaging
20
20
  Requires-Dist: pyupgrade
21
21
  Requires-Dist: tomli
22
- Requires-Dist: wexample-api==0.0.78
23
- Requires-Dist: wexample-filestate==0.0.69
22
+ Requires-Dist: wexample-api==0.0.81
23
+ Requires-Dist: wexample-filestate==0.0.72
24
24
  Provides-Extra: dev
25
25
  Requires-Dist: pytest; extra == "dev"
26
26
  Requires-Dist: pytest-cov; extra == "dev"
@@ -28,10 +28,49 @@ Description-Content-Type: text/markdown
28
28
 
29
29
  # wexample-filestate-python
30
30
 
31
- Version: 0.0.55
31
+ Version: 0.0.57
32
32
 
33
33
  Helpers for Python.
34
34
 
35
+ ## Table of Contents
36
+
37
+ - [Status Compatibility](#status-compatibility)
38
+ - [Api Reference](#api-reference)
39
+ - [Tests](#tests)
40
+ - [Code Quality](#code-quality)
41
+ - [Versioning](#versioning)
42
+ - [Changelog](#changelog)
43
+ - [Migration Notes](#migration-notes)
44
+ - [Roadmap](#roadmap)
45
+ - [Security](#security)
46
+ - [Privacy](#privacy)
47
+ - [Support](#support)
48
+ - [Contribution Guidelines](#contribution-guidelines)
49
+ - [Maintainers](#maintainers)
50
+ - [License](#license)
51
+ - [Useful Links](#useful-links)
52
+ - [Suite Integration](#suite-integration)
53
+ - [Compatibility Matrix](#compatibility-matrix)
54
+ - [Dependencies](#dependencies)
55
+ - [Suite Signature](#suite-signature)
56
+
57
+
58
+ ## Status & Compatibility
59
+
60
+ **Maturity**: Production-ready
61
+
62
+ **Python Support**: >=3.10
63
+
64
+ **OS Support**: Linux, macOS, Windows
65
+
66
+ **Status**: Actively maintained
67
+
68
+ ## API Reference
69
+
70
+ Full API documentation is available in the source code docstrings.
71
+
72
+ Key modules and classes are documented with type hints for better IDE support.
73
+
35
74
  ## Tests
36
75
 
37
76
  This project uses `pytest` for testing and `pytest-cov` for code coverage analysis.
@@ -118,13 +157,13 @@ Breaking changes are clearly documented with upgrade paths and examples.
118
157
 
119
158
  Current limitations and planned features are tracked in the GitHub issues.
120
159
 
121
- See the [project roadmap](https://github.com/wexample/python-filestate-python/issues) for upcoming features and improvements.
160
+ See the [project roadmap](https://github.com/wexample/python-filestate_python/issues) for upcoming features and improvements.
122
161
 
123
162
  ## Security Policy
124
163
 
125
164
  ### Reporting Vulnerabilities
126
165
 
127
- If you discover a security vulnerability, please email security@wexample.com.
166
+ If you discover a security vulnerability, please email contact@wexample.com.
128
167
 
129
168
  **Do not** open public issues for security vulnerabilities.
130
169
 
@@ -147,7 +186,7 @@ Community support is available through GitHub Discussions.
147
186
 
148
187
  ## Contribution Guidelines
149
188
 
150
- We welcome contributions to the Wexample suite!
189
+ We welcome contributions to the Wexample suite!
151
190
 
152
191
  ### How to Contribute
153
192
 
@@ -165,7 +204,9 @@ See [CONTRIBUTORS.md](CONTRIBUTORS.md) for the full list of contributors.
165
204
 
166
205
  ## License
167
206
 
168
- MIT
207
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
208
+
209
+ Free to use in both personal and commercial projects.
169
210
 
170
211
  ## Useful Links
171
212
 
@@ -185,9 +226,31 @@ The suite includes packages for configuration management, file handling, prompts
185
226
 
186
227
  Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
187
228
 
229
+ ## Compatibility Matrix
230
+
231
+ This package is part of the Wexample suite and is compatible with other suite packages.
232
+
233
+ Refer to each package's documentation for specific version compatibility requirements.
234
+
235
+ ## Dependencies
236
+
237
+ - attrs: >=23.1.0
238
+ - autoflake:
239
+ - black:
240
+ - cattrs: >=23.1.0
241
+ - flynt:
242
+ - isort:
243
+ - libcst:
244
+ - packaging:
245
+ - pyupgrade:
246
+ - tomli:
247
+ - wexample-api: ==0.0.81
248
+ - wexample-filestate: ==0.0.72
249
+
250
+
188
251
  # About us
189
252
 
190
- Wexample stands as a cornerstone of the digital ecosystem — a collective of seasoned engineers, researchers, and creators driven by a relentless pursuit of technological excellence. More than a media platform, it has grown into a vibrant community where innovation meets craftsmanship, and where every line of code reflects a commitment to clarity, durability, and shared intelligence.
253
+ [Wexample](https://wexample.com) stands as a cornerstone of the digital ecosystem — a collective of seasoned engineers, researchers, and creators driven by a relentless pursuit of technological excellence. More than a media platform, it has grown into a vibrant community where innovation meets craftsmanship, and where every line of code reflects a commitment to clarity, durability, and shared intelligence.
191
254
 
192
255
  This packages suite embodies this spirit. Trusted by professionals and enthusiasts alike, it delivers a consistent, high-quality foundation for modern development — open, elegant, and battle-tested. Its reputation is built on years of collaboration, refinement, and rigorous attention to detail, making it a natural choice for those who demand both robustness and beauty in their tools.
193
256
 
@@ -1,9 +1,48 @@
1
1
  # wexample-filestate-python
2
2
 
3
- Version: 0.0.55
3
+ Version: 0.0.57
4
4
 
5
5
  Helpers for Python.
6
6
 
7
+ ## Table of Contents
8
+
9
+ - [Status Compatibility](#status-compatibility)
10
+ - [Api Reference](#api-reference)
11
+ - [Tests](#tests)
12
+ - [Code Quality](#code-quality)
13
+ - [Versioning](#versioning)
14
+ - [Changelog](#changelog)
15
+ - [Migration Notes](#migration-notes)
16
+ - [Roadmap](#roadmap)
17
+ - [Security](#security)
18
+ - [Privacy](#privacy)
19
+ - [Support](#support)
20
+ - [Contribution Guidelines](#contribution-guidelines)
21
+ - [Maintainers](#maintainers)
22
+ - [License](#license)
23
+ - [Useful Links](#useful-links)
24
+ - [Suite Integration](#suite-integration)
25
+ - [Compatibility Matrix](#compatibility-matrix)
26
+ - [Dependencies](#dependencies)
27
+ - [Suite Signature](#suite-signature)
28
+
29
+
30
+ ## Status & Compatibility
31
+
32
+ **Maturity**: Production-ready
33
+
34
+ **Python Support**: >=3.10
35
+
36
+ **OS Support**: Linux, macOS, Windows
37
+
38
+ **Status**: Actively maintained
39
+
40
+ ## API Reference
41
+
42
+ Full API documentation is available in the source code docstrings.
43
+
44
+ Key modules and classes are documented with type hints for better IDE support.
45
+
7
46
  ## Tests
8
47
 
9
48
  This project uses `pytest` for testing and `pytest-cov` for code coverage analysis.
@@ -90,13 +129,13 @@ Breaking changes are clearly documented with upgrade paths and examples.
90
129
 
91
130
  Current limitations and planned features are tracked in the GitHub issues.
92
131
 
93
- See the [project roadmap](https://github.com/wexample/python-filestate-python/issues) for upcoming features and improvements.
132
+ See the [project roadmap](https://github.com/wexample/python-filestate_python/issues) for upcoming features and improvements.
94
133
 
95
134
  ## Security Policy
96
135
 
97
136
  ### Reporting Vulnerabilities
98
137
 
99
- If you discover a security vulnerability, please email security@wexample.com.
138
+ If you discover a security vulnerability, please email contact@wexample.com.
100
139
 
101
140
  **Do not** open public issues for security vulnerabilities.
102
141
 
@@ -119,7 +158,7 @@ Community support is available through GitHub Discussions.
119
158
 
120
159
  ## Contribution Guidelines
121
160
 
122
- We welcome contributions to the Wexample suite!
161
+ We welcome contributions to the Wexample suite!
123
162
 
124
163
  ### How to Contribute
125
164
 
@@ -137,7 +176,9 @@ See [CONTRIBUTORS.md](CONTRIBUTORS.md) for the full list of contributors.
137
176
 
138
177
  ## License
139
178
 
140
- MIT
179
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
180
+
181
+ Free to use in both personal and commercial projects.
141
182
 
142
183
  ## Useful Links
143
184
 
@@ -157,9 +198,31 @@ The suite includes packages for configuration management, file handling, prompts
157
198
 
158
199
  Visit the [Wexample Suite documentation](https://docs.wexample.com) for the complete package ecosystem.
159
200
 
201
+ ## Compatibility Matrix
202
+
203
+ This package is part of the Wexample suite and is compatible with other suite packages.
204
+
205
+ Refer to each package's documentation for specific version compatibility requirements.
206
+
207
+ ## Dependencies
208
+
209
+ - attrs: >=23.1.0
210
+ - autoflake:
211
+ - black:
212
+ - cattrs: >=23.1.0
213
+ - flynt:
214
+ - isort:
215
+ - libcst:
216
+ - packaging:
217
+ - pyupgrade:
218
+ - tomli:
219
+ - wexample-api: ==0.0.81
220
+ - wexample-filestate: ==0.0.72
221
+
222
+
160
223
  # About us
161
224
 
162
- Wexample stands as a cornerstone of the digital ecosystem — a collective of seasoned engineers, researchers, and creators driven by a relentless pursuit of technological excellence. More than a media platform, it has grown into a vibrant community where innovation meets craftsmanship, and where every line of code reflects a commitment to clarity, durability, and shared intelligence.
225
+ [Wexample](https://wexample.com) stands as a cornerstone of the digital ecosystem — a collective of seasoned engineers, researchers, and creators driven by a relentless pursuit of technological excellence. More than a media platform, it has grown into a vibrant community where innovation meets craftsmanship, and where every line of code reflects a commitment to clarity, durability, and shared intelligence.
163
226
 
164
227
  This packages suite embodies this spirit. Trusted by professionals and enthusiasts alike, it delivers a consistent, high-quality foundation for modern development — open, elegant, and battle-tested. Its reputation is built on years of collaboration, refinement, and rigorous attention to detail, making it a natural choice for those who demand both robustness and beauty in their tools.
165
228
 
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
6
6
 
7
7
  [project]
8
8
  name = "wexample-filestate-python"
9
- version = "0.0.55"
9
+ version = "0.0.57"
10
10
  description = "Helpers for Python."
11
11
  authors = [
12
12
  { name = "weeger", email = "contact@wexample.com" },
@@ -28,8 +28,8 @@ dependencies = [
28
28
  "packaging",
29
29
  "pyupgrade",
30
30
  "tomli",
31
- "wexample-api==0.0.78",
32
- "wexample-filestate==0.0.69",
31
+ "wexample-api==0.0.81",
32
+ "wexample-filestate==0.0.72",
33
33
  ]
34
34
 
35
35
  [project.readme]
@@ -0,0 +1,11 @@
1
+ from __future__ import annotations
2
+
3
+ from wexample_filestate.option.abstract_file_content_option import (
4
+ AbstractFileContentOption,
5
+ )
6
+ from wexample_helpers.decorator.base_class import base_class
7
+
8
+
9
+ @base_class
10
+ class AbstractPythonFileContentOption(AbstractFileContentOption):
11
+ """Base class for Python file content transformation options."""
@@ -98,6 +98,7 @@ class PythonOption(OptionMixin, AbstractNestedConfigOption):
98
98
  )
99
99
 
100
100
  return [
101
+ # filestate: python-iterable-sort
101
102
  AddFutureAnnotationsOption,
102
103
  AddReturnTypesOption,
103
104
  ClassNameMatchesFileNameOption,
@@ -1,47 +0,0 @@
1
- from __future__ import annotations
2
-
3
- from typing import TYPE_CHECKING, Any
4
-
5
- from wexample_config.config_option.abstract_config_option import AbstractConfigOption
6
- from wexample_filestate.enum.scopes import Scope
7
- from wexample_filestate.operation.abstract_operation import AbstractOperation
8
- from wexample_filestate.option.mixin.option_mixin import OptionMixin
9
- from wexample_helpers.classes.abstract_method import abstract_method
10
- from wexample_helpers.decorator.base_class import base_class
11
-
12
- if TYPE_CHECKING:
13
- from wexample_filestate.const.types_state_items import TargetFileOrDirectoryType
14
-
15
-
16
- @base_class
17
- class AbstractPythonFileContentOption(OptionMixin, AbstractConfigOption):
18
- @staticmethod
19
- def get_raw_value_allowed_type() -> Any:
20
- return bool
21
-
22
- def create_required_operation(
23
- self, target: TargetFileOrDirectoryType, scopes: set[Scope]
24
- ) -> AbstractOperation | None:
25
- from wexample_filestate.operation.file_write_operation import FileWriteOperation
26
-
27
- """Create FileWriteOperation if add_future_annotations is enabled and needed."""
28
- # Get current content
29
- current_content = target.get_local_file().read()
30
-
31
- # Apply add_future_annotations transformation
32
- new_content = self._apply_content_change(target=target)
33
-
34
- # If content changed, create FileWriteOperation
35
- if new_content != current_content:
36
- return FileWriteOperation(
37
- option=self,
38
- target=target,
39
- content=new_content,
40
- description=self.get_description(),
41
- )
42
-
43
- return None
44
-
45
- @abstract_method
46
- def _apply_content_change(self, target: TargetFileOrDirectoryType) -> None:
47
- pass