code-normalizer-pro 3.0.3__tar.gz → 3.0.4__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 (18) hide show
  1. code_normalizer_pro-3.0.4/PKG-INFO +175 -0
  2. code_normalizer_pro-3.0.4/README.md +162 -0
  3. {code_normalizer_pro-3.0.3 → code_normalizer_pro-3.0.4}/code_normalizer_pro/__init__.py +1 -1
  4. code_normalizer_pro-3.0.4/code_normalizer_pro.egg-info/PKG-INFO +175 -0
  5. {code_normalizer_pro-3.0.3 → code_normalizer_pro-3.0.4}/pyproject.toml +1 -1
  6. code_normalizer_pro-3.0.3/PKG-INFO +0 -24
  7. code_normalizer_pro-3.0.3/README.md +0 -11
  8. code_normalizer_pro-3.0.3/code_normalizer_pro.egg-info/PKG-INFO +0 -24
  9. {code_normalizer_pro-3.0.3 → code_normalizer_pro-3.0.4}/LICENSE +0 -0
  10. {code_normalizer_pro-3.0.3 → code_normalizer_pro-3.0.4}/code_normalizer_pro/cli.py +0 -0
  11. {code_normalizer_pro-3.0.3 → code_normalizer_pro-3.0.4}/code_normalizer_pro/code_normalizer_pro.py +0 -0
  12. {code_normalizer_pro-3.0.3 → code_normalizer_pro-3.0.4}/code_normalizer_pro.egg-info/SOURCES.txt +0 -0
  13. {code_normalizer_pro-3.0.3 → code_normalizer_pro-3.0.4}/code_normalizer_pro.egg-info/dependency_links.txt +0 -0
  14. {code_normalizer_pro-3.0.3 → code_normalizer_pro-3.0.4}/code_normalizer_pro.egg-info/entry_points.txt +0 -0
  15. {code_normalizer_pro-3.0.3 → code_normalizer_pro-3.0.4}/code_normalizer_pro.egg-info/requires.txt +0 -0
  16. {code_normalizer_pro-3.0.3 → code_normalizer_pro-3.0.4}/code_normalizer_pro.egg-info/top_level.txt +0 -0
  17. {code_normalizer_pro-3.0.3 → code_normalizer_pro-3.0.4}/setup.cfg +0 -0
  18. {code_normalizer_pro-3.0.3 → code_normalizer_pro-3.0.4}/tests/test_code_normalize_pro.py +0 -0
@@ -0,0 +1,175 @@
1
+ Metadata-Version: 2.4
2
+ Name: code-normalizer-pro
3
+ Version: 3.0.4
4
+ Summary: Production-grade code normalization tool for encoding, newlines, and whitespace hygiene.
5
+ License: MIT
6
+ Project-URL: Homepage, https://github.com/MRJR0101/Code-Normalizer-Pro
7
+ Keywords: code-quality,formatter,normalization,cli,python
8
+ Requires-Python: >=3.10
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Requires-Dist: tqdm
12
+ Dynamic: license-file
13
+
14
+ # code-normalizer-pro
15
+
16
+ ![PyPI](https://img.shields.io/pypi/v/code-normalizer-pro?style=flat-square)
17
+ ![Python](https://img.shields.io/badge/python-3.10%2B-blue?style=flat-square)
18
+ ![License](https://img.shields.io/badge/license-MIT-green?style=flat-square)
19
+
20
+ **code-normalizer-pro** is a Python CLI for **code normalization**, **whitespace cleanup**, **line ending normalization**, and **encoding normalization** across entire repositories.
21
+
22
+ It helps clean source trees by converting supported text files to UTF-8, normalizing CRLF/LF line endings, removing trailing whitespace, and enforcing a final newline. It is designed for codebase cleanup, CI preparation, refactoring prep, and repository hygiene.
23
+
24
+ ## Install
25
+
26
+ ```bash
27
+ pip install code-normalizer-pro
28
+ ```
29
+
30
+ ## Quick Start
31
+
32
+ Preview changes:
33
+
34
+ ```bash
35
+ code-normalizer-pro . --dry-run -e .py
36
+ ```
37
+
38
+ Apply changes in place:
39
+
40
+ ```bash
41
+ code-normalizer-pro . --in-place -e .py
42
+ ```
43
+
44
+ Run syntax checks after normalization:
45
+
46
+ ```bash
47
+ code-normalizer-pro . --dry-run -e .py --check
48
+ ```
49
+
50
+ ## What This Tool Is For
51
+
52
+ Use `code-normalizer-pro` when you need:
53
+
54
+ - code normalization across a repository
55
+ - encoding normalization to UTF-8
56
+ - line ending normalization to LF
57
+ - whitespace cleanup before commits
58
+ - consistent source files before CI or refactoring
59
+ - reduced diff noise in Git history
60
+
61
+ ## Features
62
+
63
+ - UTF-8 normalization for supported text encodings
64
+ - line ending normalization
65
+ - trailing whitespace removal
66
+ - final newline enforcement
67
+ - dry-run mode
68
+ - in-place normalization
69
+ - extension filtering
70
+ - parallel processing
71
+ - incremental caching
72
+ - interactive approval mode
73
+ - optional syntax checking
74
+ - git pre-commit hook installation
75
+
76
+ ## Common Workflows
77
+
78
+ Normalize a full project:
79
+
80
+ ```bash
81
+ code-normalizer-pro . --in-place
82
+ ```
83
+
84
+ Normalize only Python and JavaScript files:
85
+
86
+ ```bash
87
+ code-normalizer-pro . -e .py -e .js --in-place
88
+ ```
89
+
90
+ Use parallel processing on a larger codebase:
91
+
92
+ ```bash
93
+ code-normalizer-pro . --parallel --in-place
94
+ ```
95
+
96
+ Install the pre-commit hook:
97
+
98
+ ```bash
99
+ code-normalizer-pro --install-hook
100
+ ```
101
+
102
+ ## Before and After
103
+
104
+ Before:
105
+
106
+ ```python
107
+ def add(a, b):
108
+ return a + b
109
+ ```
110
+
111
+ After:
112
+
113
+ ```python
114
+ def add(a, b):
115
+ return a + b
116
+ ```
117
+
118
+ ## CLI Options
119
+
120
+ | Option | Description |
121
+ |---|---|
122
+ | `--dry-run` | preview changes without writing files |
123
+ | `--in-place` | modify files directly |
124
+ | `--check` | run syntax validation |
125
+ | `--parallel` | enable multi-core processing |
126
+ | `--workers` | set worker count |
127
+ | `--interactive` | approve changes per file |
128
+ | `--no-cache` | disable incremental cache |
129
+ | `--no-backup` | disable backups |
130
+ | `--install-hook` | install a git pre-commit hook |
131
+ | `-e, --ext` | process only specific extensions |
132
+ | `-v, --verbose` | show detailed output |
133
+
134
+ ## Safety
135
+
136
+ - deterministic, non-semantic cleanup only
137
+ - binary files are skipped
138
+ - dry-run mode allows safe preview
139
+ - backups are enabled by default for in-place edits
140
+ - syntax checks can validate normalized output
141
+
142
+ ## Supported Encodings
143
+
144
+ - utf-8
145
+ - utf-8-sig
146
+ - utf-16
147
+ - utf-16-le
148
+ - utf-16-be
149
+ - windows-1252
150
+ - latin-1
151
+ - iso-8859-1
152
+
153
+ ## Supported Syntax Checks
154
+
155
+ - Python
156
+ - JavaScript
157
+ - TypeScript
158
+ - Go
159
+ - Rust
160
+ - C
161
+ - C++
162
+ - Java
163
+
164
+ ## Use Cases
165
+
166
+ - cleaning legacy repositories
167
+ - standardizing source files before CI
168
+ - preparing code for linting or formatting
169
+ - reducing whitespace-only diffs
170
+ - improving repository hygiene for teams
171
+ - normalizing files before AI-assisted code workflows
172
+
173
+ ## License
174
+
175
+ MIT License
@@ -0,0 +1,162 @@
1
+ # code-normalizer-pro
2
+
3
+ ![PyPI](https://img.shields.io/pypi/v/code-normalizer-pro?style=flat-square)
4
+ ![Python](https://img.shields.io/badge/python-3.10%2B-blue?style=flat-square)
5
+ ![License](https://img.shields.io/badge/license-MIT-green?style=flat-square)
6
+
7
+ **code-normalizer-pro** is a Python CLI for **code normalization**, **whitespace cleanup**, **line ending normalization**, and **encoding normalization** across entire repositories.
8
+
9
+ It helps clean source trees by converting supported text files to UTF-8, normalizing CRLF/LF line endings, removing trailing whitespace, and enforcing a final newline. It is designed for codebase cleanup, CI preparation, refactoring prep, and repository hygiene.
10
+
11
+ ## Install
12
+
13
+ ```bash
14
+ pip install code-normalizer-pro
15
+ ```
16
+
17
+ ## Quick Start
18
+
19
+ Preview changes:
20
+
21
+ ```bash
22
+ code-normalizer-pro . --dry-run -e .py
23
+ ```
24
+
25
+ Apply changes in place:
26
+
27
+ ```bash
28
+ code-normalizer-pro . --in-place -e .py
29
+ ```
30
+
31
+ Run syntax checks after normalization:
32
+
33
+ ```bash
34
+ code-normalizer-pro . --dry-run -e .py --check
35
+ ```
36
+
37
+ ## What This Tool Is For
38
+
39
+ Use `code-normalizer-pro` when you need:
40
+
41
+ - code normalization across a repository
42
+ - encoding normalization to UTF-8
43
+ - line ending normalization to LF
44
+ - whitespace cleanup before commits
45
+ - consistent source files before CI or refactoring
46
+ - reduced diff noise in Git history
47
+
48
+ ## Features
49
+
50
+ - UTF-8 normalization for supported text encodings
51
+ - line ending normalization
52
+ - trailing whitespace removal
53
+ - final newline enforcement
54
+ - dry-run mode
55
+ - in-place normalization
56
+ - extension filtering
57
+ - parallel processing
58
+ - incremental caching
59
+ - interactive approval mode
60
+ - optional syntax checking
61
+ - git pre-commit hook installation
62
+
63
+ ## Common Workflows
64
+
65
+ Normalize a full project:
66
+
67
+ ```bash
68
+ code-normalizer-pro . --in-place
69
+ ```
70
+
71
+ Normalize only Python and JavaScript files:
72
+
73
+ ```bash
74
+ code-normalizer-pro . -e .py -e .js --in-place
75
+ ```
76
+
77
+ Use parallel processing on a larger codebase:
78
+
79
+ ```bash
80
+ code-normalizer-pro . --parallel --in-place
81
+ ```
82
+
83
+ Install the pre-commit hook:
84
+
85
+ ```bash
86
+ code-normalizer-pro --install-hook
87
+ ```
88
+
89
+ ## Before and After
90
+
91
+ Before:
92
+
93
+ ```python
94
+ def add(a, b):
95
+ return a + b
96
+ ```
97
+
98
+ After:
99
+
100
+ ```python
101
+ def add(a, b):
102
+ return a + b
103
+ ```
104
+
105
+ ## CLI Options
106
+
107
+ | Option | Description |
108
+ |---|---|
109
+ | `--dry-run` | preview changes without writing files |
110
+ | `--in-place` | modify files directly |
111
+ | `--check` | run syntax validation |
112
+ | `--parallel` | enable multi-core processing |
113
+ | `--workers` | set worker count |
114
+ | `--interactive` | approve changes per file |
115
+ | `--no-cache` | disable incremental cache |
116
+ | `--no-backup` | disable backups |
117
+ | `--install-hook` | install a git pre-commit hook |
118
+ | `-e, --ext` | process only specific extensions |
119
+ | `-v, --verbose` | show detailed output |
120
+
121
+ ## Safety
122
+
123
+ - deterministic, non-semantic cleanup only
124
+ - binary files are skipped
125
+ - dry-run mode allows safe preview
126
+ - backups are enabled by default for in-place edits
127
+ - syntax checks can validate normalized output
128
+
129
+ ## Supported Encodings
130
+
131
+ - utf-8
132
+ - utf-8-sig
133
+ - utf-16
134
+ - utf-16-le
135
+ - utf-16-be
136
+ - windows-1252
137
+ - latin-1
138
+ - iso-8859-1
139
+
140
+ ## Supported Syntax Checks
141
+
142
+ - Python
143
+ - JavaScript
144
+ - TypeScript
145
+ - Go
146
+ - Rust
147
+ - C
148
+ - C++
149
+ - Java
150
+
151
+ ## Use Cases
152
+
153
+ - cleaning legacy repositories
154
+ - standardizing source files before CI
155
+ - preparing code for linting or formatting
156
+ - reducing whitespace-only diffs
157
+ - improving repository hygiene for teams
158
+ - normalizing files before AI-assisted code workflows
159
+
160
+ ## License
161
+
162
+ MIT License
@@ -1,4 +1,4 @@
1
1
  """Package metadata for code-normalizer-pro."""
2
2
 
3
3
  __all__ = ["__version__"]
4
- __version__ = "3.0.3"
4
+ __version__ = "3.0.4"
@@ -0,0 +1,175 @@
1
+ Metadata-Version: 2.4
2
+ Name: code-normalizer-pro
3
+ Version: 3.0.4
4
+ Summary: Production-grade code normalization tool for encoding, newlines, and whitespace hygiene.
5
+ License: MIT
6
+ Project-URL: Homepage, https://github.com/MRJR0101/Code-Normalizer-Pro
7
+ Keywords: code-quality,formatter,normalization,cli,python
8
+ Requires-Python: >=3.10
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Requires-Dist: tqdm
12
+ Dynamic: license-file
13
+
14
+ # code-normalizer-pro
15
+
16
+ ![PyPI](https://img.shields.io/pypi/v/code-normalizer-pro?style=flat-square)
17
+ ![Python](https://img.shields.io/badge/python-3.10%2B-blue?style=flat-square)
18
+ ![License](https://img.shields.io/badge/license-MIT-green?style=flat-square)
19
+
20
+ **code-normalizer-pro** is a Python CLI for **code normalization**, **whitespace cleanup**, **line ending normalization**, and **encoding normalization** across entire repositories.
21
+
22
+ It helps clean source trees by converting supported text files to UTF-8, normalizing CRLF/LF line endings, removing trailing whitespace, and enforcing a final newline. It is designed for codebase cleanup, CI preparation, refactoring prep, and repository hygiene.
23
+
24
+ ## Install
25
+
26
+ ```bash
27
+ pip install code-normalizer-pro
28
+ ```
29
+
30
+ ## Quick Start
31
+
32
+ Preview changes:
33
+
34
+ ```bash
35
+ code-normalizer-pro . --dry-run -e .py
36
+ ```
37
+
38
+ Apply changes in place:
39
+
40
+ ```bash
41
+ code-normalizer-pro . --in-place -e .py
42
+ ```
43
+
44
+ Run syntax checks after normalization:
45
+
46
+ ```bash
47
+ code-normalizer-pro . --dry-run -e .py --check
48
+ ```
49
+
50
+ ## What This Tool Is For
51
+
52
+ Use `code-normalizer-pro` when you need:
53
+
54
+ - code normalization across a repository
55
+ - encoding normalization to UTF-8
56
+ - line ending normalization to LF
57
+ - whitespace cleanup before commits
58
+ - consistent source files before CI or refactoring
59
+ - reduced diff noise in Git history
60
+
61
+ ## Features
62
+
63
+ - UTF-8 normalization for supported text encodings
64
+ - line ending normalization
65
+ - trailing whitespace removal
66
+ - final newline enforcement
67
+ - dry-run mode
68
+ - in-place normalization
69
+ - extension filtering
70
+ - parallel processing
71
+ - incremental caching
72
+ - interactive approval mode
73
+ - optional syntax checking
74
+ - git pre-commit hook installation
75
+
76
+ ## Common Workflows
77
+
78
+ Normalize a full project:
79
+
80
+ ```bash
81
+ code-normalizer-pro . --in-place
82
+ ```
83
+
84
+ Normalize only Python and JavaScript files:
85
+
86
+ ```bash
87
+ code-normalizer-pro . -e .py -e .js --in-place
88
+ ```
89
+
90
+ Use parallel processing on a larger codebase:
91
+
92
+ ```bash
93
+ code-normalizer-pro . --parallel --in-place
94
+ ```
95
+
96
+ Install the pre-commit hook:
97
+
98
+ ```bash
99
+ code-normalizer-pro --install-hook
100
+ ```
101
+
102
+ ## Before and After
103
+
104
+ Before:
105
+
106
+ ```python
107
+ def add(a, b):
108
+ return a + b
109
+ ```
110
+
111
+ After:
112
+
113
+ ```python
114
+ def add(a, b):
115
+ return a + b
116
+ ```
117
+
118
+ ## CLI Options
119
+
120
+ | Option | Description |
121
+ |---|---|
122
+ | `--dry-run` | preview changes without writing files |
123
+ | `--in-place` | modify files directly |
124
+ | `--check` | run syntax validation |
125
+ | `--parallel` | enable multi-core processing |
126
+ | `--workers` | set worker count |
127
+ | `--interactive` | approve changes per file |
128
+ | `--no-cache` | disable incremental cache |
129
+ | `--no-backup` | disable backups |
130
+ | `--install-hook` | install a git pre-commit hook |
131
+ | `-e, --ext` | process only specific extensions |
132
+ | `-v, --verbose` | show detailed output |
133
+
134
+ ## Safety
135
+
136
+ - deterministic, non-semantic cleanup only
137
+ - binary files are skipped
138
+ - dry-run mode allows safe preview
139
+ - backups are enabled by default for in-place edits
140
+ - syntax checks can validate normalized output
141
+
142
+ ## Supported Encodings
143
+
144
+ - utf-8
145
+ - utf-8-sig
146
+ - utf-16
147
+ - utf-16-le
148
+ - utf-16-be
149
+ - windows-1252
150
+ - latin-1
151
+ - iso-8859-1
152
+
153
+ ## Supported Syntax Checks
154
+
155
+ - Python
156
+ - JavaScript
157
+ - TypeScript
158
+ - Go
159
+ - Rust
160
+ - C
161
+ - C++
162
+ - Java
163
+
164
+ ## Use Cases
165
+
166
+ - cleaning legacy repositories
167
+ - standardizing source files before CI
168
+ - preparing code for linting or formatting
169
+ - reducing whitespace-only diffs
170
+ - improving repository hygiene for teams
171
+ - normalizing files before AI-assisted code workflows
172
+
173
+ ## License
174
+
175
+ MIT License
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "code-normalizer-pro"
7
- version = "3.0.3"
7
+ version = "3.0.4"
8
8
  description = "Production-grade code normalization tool for encoding, newlines, and whitespace hygiene."
9
9
  readme = { file = "README.md", content-type = "text/markdown" }
10
10
  license = { text = "MIT" }
@@ -1,24 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: code-normalizer-pro
3
- Version: 3.0.3
4
- Summary: Production-grade code normalization tool for encoding, newlines, and whitespace hygiene.
5
- License: MIT
6
- Project-URL: Homepage, https://github.com/MRJR0101/Code-Normalizer-Pro
7
- Keywords: code-quality,formatter,normalization,cli,python
8
- Requires-Python: >=3.10
9
- Description-Content-Type: text/markdown
10
- License-File: LICENSE
11
- Requires-Dist: tqdm
12
- Dynamic: license-file
13
-
14
- # code-normalizer-pro
15
-
16
- A CLI tool that normalizes encoding, line endings, and whitespace across a codebase.
17
-
18
- ## Install
19
-
20
- pip install code-normalizer-pro
21
-
22
- ## Usage
23
-
24
- code-normalizer-pro . --dry-run -e .py
@@ -1,11 +0,0 @@
1
- # code-normalizer-pro
2
-
3
- A CLI tool that normalizes encoding, line endings, and whitespace across a codebase.
4
-
5
- ## Install
6
-
7
- pip install code-normalizer-pro
8
-
9
- ## Usage
10
-
11
- code-normalizer-pro . --dry-run -e .py
@@ -1,24 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: code-normalizer-pro
3
- Version: 3.0.3
4
- Summary: Production-grade code normalization tool for encoding, newlines, and whitespace hygiene.
5
- License: MIT
6
- Project-URL: Homepage, https://github.com/MRJR0101/Code-Normalizer-Pro
7
- Keywords: code-quality,formatter,normalization,cli,python
8
- Requires-Python: >=3.10
9
- Description-Content-Type: text/markdown
10
- License-File: LICENSE
11
- Requires-Dist: tqdm
12
- Dynamic: license-file
13
-
14
- # code-normalizer-pro
15
-
16
- A CLI tool that normalizes encoding, line endings, and whitespace across a codebase.
17
-
18
- ## Install
19
-
20
- pip install code-normalizer-pro
21
-
22
- ## Usage
23
-
24
- code-normalizer-pro . --dry-run -e .py