undersort 0.1.2__tar.gz → 0.1.3__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.
- {undersort-0.1.2 → undersort-0.1.3}/PKG-INFO +12 -5
- {undersort-0.1.2 → undersort-0.1.3}/README.md +11 -4
- {undersort-0.1.2 → undersort-0.1.3}/pyproject.toml +1 -1
- {undersort-0.1.2 → undersort-0.1.3}/undersort/__init__.py +1 -1
- {undersort-0.1.2 → undersort-0.1.3}/uv.lock +1 -1
- {undersort-0.1.2 → undersort-0.1.3}/.github/workflows/ci.yml +0 -0
- {undersort-0.1.2 → undersort-0.1.3}/.gitignore +0 -0
- {undersort-0.1.2 → undersort-0.1.3}/.pre-commit-config.yaml +0 -0
- {undersort-0.1.2 → undersort-0.1.3}/.pre-commit-hooks.yaml +0 -0
- {undersort-0.1.2 → undersort-0.1.3}/.python-version +0 -0
- {undersort-0.1.2 → undersort-0.1.3}/.vscode/settings.json +0 -0
- {undersort-0.1.2 → undersort-0.1.3}/LICENSE +0 -0
- {undersort-0.1.2 → undersort-0.1.3}/Makefile +0 -0
- {undersort-0.1.2 → undersort-0.1.3}/tests/__init__.py +0 -0
- {undersort-0.1.2 → undersort-0.1.3}/tests/test_config.py +0 -0
- {undersort-0.1.2 → undersort-0.1.3}/tests/test_main.py +0 -0
- {undersort-0.1.2 → undersort-0.1.3}/tests/test_sorter.py +0 -0
- {undersort-0.1.2 → undersort-0.1.3}/undersort/config.py +0 -0
- {undersort-0.1.2 → undersort-0.1.3}/undersort/logger.py +0 -0
- {undersort-0.1.2 → undersort-0.1.3}/undersort/main.py +0 -0
- {undersort-0.1.2 → undersort-0.1.3}/undersort/sorter.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: undersort
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
4
4
|
Summary: A tool to sort class methods by visibility (public, protected, private)
|
|
5
5
|
Project-URL: Homepage, https://github.com/kivicode/undersort
|
|
6
6
|
Project-URL: Repository, https://github.com/kivicode/undersort
|
|
@@ -43,10 +43,15 @@ A Python tool that automatically sorts class methods by visibility (public, prot
|
|
|
43
43
|
|
|
44
44
|
```bash
|
|
45
45
|
# Using uv (recommended)
|
|
46
|
-
uv
|
|
46
|
+
uv add undersort
|
|
47
47
|
|
|
48
48
|
# Using pip
|
|
49
|
-
pip install
|
|
49
|
+
pip install undersort
|
|
50
|
+
|
|
51
|
+
# For development
|
|
52
|
+
git clone https://github.com/kivicode/undersort
|
|
53
|
+
cd undersort
|
|
54
|
+
uv sync
|
|
50
55
|
```
|
|
51
56
|
|
|
52
57
|
## Configuration
|
|
@@ -85,6 +90,7 @@ Methods are sorted in two levels:
|
|
|
85
90
|
2. **Secondary**: Within each visibility level, by method type (instance → class → static by default)
|
|
86
91
|
|
|
87
92
|
The sorting algorithm **minimizes movement** to preserve the original order as much as possible:
|
|
93
|
+
|
|
88
94
|
- Methods that need to move DOWN (to a later section) are placed at the **beginning** of their target section
|
|
89
95
|
- Methods that need to move UP (to an earlier section) are placed at the **end** of their target section
|
|
90
96
|
- Methods already in the correct section maintain their relative order
|
|
@@ -148,9 +154,10 @@ repos:
|
|
|
148
154
|
hooks:
|
|
149
155
|
- id: undersort
|
|
150
156
|
name: undersort
|
|
151
|
-
entry:
|
|
152
|
-
language:
|
|
157
|
+
entry: undersort
|
|
158
|
+
language: python
|
|
153
159
|
types: [python]
|
|
160
|
+
additional_dependencies: ["undersort"]
|
|
154
161
|
```
|
|
155
162
|
|
|
156
163
|
Then install the hook:
|
|
@@ -16,10 +16,15 @@ A Python tool that automatically sorts class methods by visibility (public, prot
|
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
18
|
# Using uv (recommended)
|
|
19
|
-
uv
|
|
19
|
+
uv add undersort
|
|
20
20
|
|
|
21
21
|
# Using pip
|
|
22
|
-
pip install
|
|
22
|
+
pip install undersort
|
|
23
|
+
|
|
24
|
+
# For development
|
|
25
|
+
git clone https://github.com/kivicode/undersort
|
|
26
|
+
cd undersort
|
|
27
|
+
uv sync
|
|
23
28
|
```
|
|
24
29
|
|
|
25
30
|
## Configuration
|
|
@@ -58,6 +63,7 @@ Methods are sorted in two levels:
|
|
|
58
63
|
2. **Secondary**: Within each visibility level, by method type (instance → class → static by default)
|
|
59
64
|
|
|
60
65
|
The sorting algorithm **minimizes movement** to preserve the original order as much as possible:
|
|
66
|
+
|
|
61
67
|
- Methods that need to move DOWN (to a later section) are placed at the **beginning** of their target section
|
|
62
68
|
- Methods that need to move UP (to an earlier section) are placed at the **end** of their target section
|
|
63
69
|
- Methods already in the correct section maintain their relative order
|
|
@@ -121,9 +127,10 @@ repos:
|
|
|
121
127
|
hooks:
|
|
122
128
|
- id: undersort
|
|
123
129
|
name: undersort
|
|
124
|
-
entry:
|
|
125
|
-
language:
|
|
130
|
+
entry: undersort
|
|
131
|
+
language: python
|
|
126
132
|
types: [python]
|
|
133
|
+
additional_dependencies: ["undersort"]
|
|
127
134
|
```
|
|
128
135
|
|
|
129
136
|
Then install the hook:
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "undersort"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.3"
|
|
8
8
|
description = "A tool to sort class methods by visibility (public, protected, private)"
|
|
9
9
|
authors = [{ name = "KiviCode", email = "kivicode.dev@gmail.com" }]
|
|
10
10
|
readme = "README.md"
|
|
@@ -905,7 +905,7 @@ wheels = [
|
|
|
905
905
|
|
|
906
906
|
[[package]]
|
|
907
907
|
name = "undersort"
|
|
908
|
-
version = "0.1.
|
|
908
|
+
version = "0.1.3"
|
|
909
909
|
source = { editable = "." }
|
|
910
910
|
dependencies = [
|
|
911
911
|
{ name = "libcst", version = "1.1.0", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.9'" },
|
|
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
|