unref 0.0.1__py3-none-any.whl
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.
- unref/__init__.py +1 -0
- unref/py.typed +0 -0
- unref-0.0.1.dist-info/METADATA +46 -0
- unref-0.0.1.dist-info/RECORD +6 -0
- unref-0.0.1.dist-info/WHEEL +4 -0
- unref-0.0.1.dist-info/licenses/LICENSE +21 -0
unref/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"""Find unreferenced Python code."""
|
unref/py.typed
ADDED
|
File without changes
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: unref
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: Find unreferenced Python code
|
|
5
|
+
Project-URL: homepage, https://github.com/Apakottur/unref
|
|
6
|
+
Project-URL: repository, https://github.com/Apakottur/unref
|
|
7
|
+
Author: Yossi Rozantsev
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
Keywords: dead-code,linter,static-analysis,unused-code
|
|
11
|
+
Classifier: Development Status :: 1 - Planning
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Operating System :: OS Independent
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
19
|
+
Classifier: Topic :: Software Development :: Quality Assurance
|
|
20
|
+
Requires-Python: >=3.11
|
|
21
|
+
Description-Content-Type: text/markdown
|
|
22
|
+
|
|
23
|
+
[](https://pypi.python.org/pypi/unref)
|
|
24
|
+
[](https://github.com/Apakottur/unref/blob/main/LICENSE)
|
|
25
|
+
[](https://pypi.python.org/pypi/unref)
|
|
26
|
+
|
|
27
|
+
# unref
|
|
28
|
+
|
|
29
|
+
Find unreferenced Python code.
|
|
30
|
+
|
|
31
|
+
`unref` reports the functions, classes and methods in a Python codebase that nothing references.
|
|
32
|
+
|
|
33
|
+
> [!NOTE]
|
|
34
|
+
> `unref` is in early development and does not do anything useful yet.
|
|
35
|
+
|
|
36
|
+
## Why
|
|
37
|
+
|
|
38
|
+
Finding dead code needs whole-program analysis: a function is unused only if no file in the project
|
|
39
|
+
references it. [Ruff](https://docs.astral.sh/ruff/) analyses one file at a time and does not have this
|
|
40
|
+
feature yet, see [astral-sh/ruff#872](https://github.com/astral-sh/ruff/issues/872).
|
|
41
|
+
|
|
42
|
+
Use `unref` today, and migrate when Ruff ships it.
|
|
43
|
+
|
|
44
|
+
## Contributing
|
|
45
|
+
|
|
46
|
+
See [CONTRIBUTING.md](https://github.com/Apakottur/unref/blob/main/CONTRIBUTING.md).
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
unref/__init__.py,sha256=-v3CQ1iVqMcXaxluuNmue1eWAARUDa9XoBbZGfF2Bjs,37
|
|
2
|
+
unref/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
unref-0.0.1.dist-info/METADATA,sha256=lpwto8wmNFBkubozFcmwDty0LQgOGfy56dfysAqo1jk,1813
|
|
4
|
+
unref-0.0.1.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
5
|
+
unref-0.0.1.dist-info/licenses/LICENSE,sha256=uWUIf7xIWT-X1V7ikZZsuai1ZUtNrLmJmKG8Ih9wmdk,1072
|
|
6
|
+
unref-0.0.1.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Yossi Rozantsev
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|