undersort 0.1.0__tar.gz → 0.1.1__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.0 → undersort-0.1.1}/PKG-INFO +2 -2
- {undersort-0.1.0 → undersort-0.1.1}/README.md +1 -1
- {undersort-0.1.0 → undersort-0.1.1}/pyproject.toml +1 -1
- {undersort-0.1.0 → undersort-0.1.1}/undersort/main.py +5 -7
- {undersort-0.1.0 → undersort-0.1.1}/uv.lock +1 -1
- {undersort-0.1.0 → undersort-0.1.1}/.github/workflows/ci.yml +0 -0
- {undersort-0.1.0 → undersort-0.1.1}/.gitignore +0 -0
- {undersort-0.1.0 → undersort-0.1.1}/.pre-commit-config.yaml +0 -0
- {undersort-0.1.0 → undersort-0.1.1}/.pre-commit-hooks.yaml +0 -0
- {undersort-0.1.0 → undersort-0.1.1}/.python-version +0 -0
- {undersort-0.1.0 → undersort-0.1.1}/.vscode/settings.json +0 -0
- {undersort-0.1.0 → undersort-0.1.1}/LICENSE +0 -0
- {undersort-0.1.0 → undersort-0.1.1}/Makefile +0 -0
- {undersort-0.1.0 → undersort-0.1.1}/tests/__init__.py +0 -0
- {undersort-0.1.0 → undersort-0.1.1}/tests/test_config.py +0 -0
- {undersort-0.1.0 → undersort-0.1.1}/tests/test_main.py +0 -0
- {undersort-0.1.0 → undersort-0.1.1}/tests/test_sorter.py +0 -0
- {undersort-0.1.0 → undersort-0.1.1}/undersort/__init__.py +0 -0
- {undersort-0.1.0 → undersort-0.1.1}/undersort/config.py +0 -0
- {undersort-0.1.0 → undersort-0.1.1}/undersort/logger.py +0 -0
- {undersort-0.1.0 → undersort-0.1.1}/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.1
|
|
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
|
|
@@ -131,7 +131,7 @@ undersort --diff example.py
|
|
|
131
131
|
undersort --check --diff src/
|
|
132
132
|
```
|
|
133
133
|
|
|
134
|
-
**Note**: By default, undersort excludes
|
|
134
|
+
**Note**: By default, undersort excludes all dot-prefixed directories (e.g., `.venv`, `.git`, `.pytest_cache`) and common build directories (`venv`, `__pycache__`, `node_modules`) when scanning directories recursively.
|
|
135
135
|
|
|
136
136
|
### Pre-commit Integration
|
|
137
137
|
|
|
@@ -104,7 +104,7 @@ undersort --diff example.py
|
|
|
104
104
|
undersort --check --diff src/
|
|
105
105
|
```
|
|
106
106
|
|
|
107
|
-
**Note**: By default, undersort excludes
|
|
107
|
+
**Note**: By default, undersort excludes all dot-prefixed directories (e.g., `.venv`, `.git`, `.pytest_cache`) and common build directories (`venv`, `__pycache__`, `node_modules`) when scanning directories recursively.
|
|
108
108
|
|
|
109
109
|
### Pre-commit Integration
|
|
110
110
|
|
|
@@ -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.1"
|
|
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"
|
|
@@ -19,15 +19,9 @@ def collect_python_files(path: Path, recursive: bool = True) -> list[Path]:
|
|
|
19
19
|
Returns:
|
|
20
20
|
List of Python file paths
|
|
21
21
|
"""
|
|
22
|
-
# Common directories to exclude
|
|
23
22
|
exclude_dirs = {
|
|
24
|
-
".venv",
|
|
25
23
|
"venv",
|
|
26
|
-
".git",
|
|
27
24
|
"__pycache__",
|
|
28
|
-
".pytest_cache",
|
|
29
|
-
".mypy_cache",
|
|
30
|
-
".ruff_cache",
|
|
31
25
|
"node_modules",
|
|
32
26
|
}
|
|
33
27
|
|
|
@@ -37,7 +31,11 @@ def collect_python_files(path: Path, recursive: bool = True) -> list[Path]:
|
|
|
37
31
|
if path.is_dir():
|
|
38
32
|
pattern = "**/*.py" if recursive else "*.py"
|
|
39
33
|
all_files = path.glob(pattern)
|
|
40
|
-
filtered_files = [
|
|
34
|
+
filtered_files = [
|
|
35
|
+
f
|
|
36
|
+
for f in all_files
|
|
37
|
+
if not any(part in exclude_dirs or (part.startswith(".") and part != ".") for part in f.parts)
|
|
38
|
+
]
|
|
41
39
|
|
|
42
40
|
return sorted(filtered_files)
|
|
43
41
|
|
|
@@ -905,7 +905,7 @@ wheels = [
|
|
|
905
905
|
|
|
906
906
|
[[package]]
|
|
907
907
|
name = "undersort"
|
|
908
|
-
version = "0.1.
|
|
908
|
+
version = "0.1.1"
|
|
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
|