lapsed 2.4.1__tar.gz → 2.4.2__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.
- {lapsed-2.4.1 → lapsed-2.4.2}/PKG-INFO +3 -3
- {lapsed-2.4.1 → lapsed-2.4.2}/README.md +2 -2
- lapsed-2.4.2/deadcode/__init__.py +10 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/pyproject.toml +1 -1
- lapsed-2.4.1/deadcode/__init__.py +0 -8
- {lapsed-2.4.1 → lapsed-2.4.2}/.gitignore +0 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/LICENSE +0 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/deadcode/actions/__init__.py +0 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/deadcode/actions/find_python_filenames.py +0 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/deadcode/actions/find_unused_names.py +0 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/deadcode/actions/fix_or_show_unused_code.py +0 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/deadcode/actions/get_unused_names_error_message.py +0 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/deadcode/actions/merge_overlaping_file_parts.py +0 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/deadcode/actions/parse_abstract_syntax_tree.py +0 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/deadcode/actions/parse_arguments.py +0 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/deadcode/actions/parse_tach_config.py +0 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/deadcode/actions/remove_file_parts_from_content.py +0 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/deadcode/cli.py +0 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/deadcode/constants.py +0 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/deadcode/data_types.py +0 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/deadcode/utils/__init__.py +0 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/deadcode/utils/add_colors_to_diff.py +0 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/deadcode/utils/base_test_case.py +0 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/deadcode/utils/fix_indent.py +0 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/deadcode/utils/flatten_lists.py +0 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/deadcode/utils/nested_scopes.py +0 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/deadcode/utils/print_ast.py +0 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/deadcode/visitor/__init__.py +0 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/deadcode/visitor/code_item.py +0 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/deadcode/visitor/dead_code_visitor.py +0 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/deadcode/visitor/ignore.py +0 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/deadcode/visitor/lines.py +0 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/deadcode/visitor/noqa.py +0 -0
- {lapsed-2.4.1 → lapsed-2.4.2}/deadcode/visitor/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: lapsed
|
|
3
|
-
Version: 2.4.
|
|
3
|
+
Version: 2.4.2
|
|
4
4
|
Summary: Find and remove dead code.
|
|
5
5
|
Project-URL: homepage, https://github.com/albertas/deadcode
|
|
6
6
|
Project-URL: documentation, https://deadcode.readthedocs.io/
|
|
@@ -94,7 +94,7 @@ Create a `.pre-commit-config.yaml` file in the root of your project directory, i
|
|
|
94
94
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
95
95
|
repos:
|
|
96
96
|
- repo: https://github.com/albertas/deadcode
|
|
97
|
-
rev: 2.4.
|
|
97
|
+
rev: 2.4.2
|
|
98
98
|
hooks:
|
|
99
99
|
- id: deadcode
|
|
100
100
|
```
|
|
@@ -225,7 +225,7 @@ code base is implemented in.
|
|
|
225
225
|
- [ ] Investigate ways of extracting and backporting Python3.10+ `ast` implementation to lower Python versions.
|
|
226
226
|
|
|
227
227
|
## Release notes
|
|
228
|
-
-
|
|
228
|
+
- v2.4.2:
|
|
229
229
|
- Add `--tach-config` option to read `tach.toml` file(s) and treat names exposed via `[[interfaces]]`
|
|
230
230
|
as public API, and skip `unchecked = true` modules entirely.
|
|
231
231
|
- v2.4.1:
|
|
@@ -66,7 +66,7 @@ Create a `.pre-commit-config.yaml` file in the root of your project directory, i
|
|
|
66
66
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
67
67
|
repos:
|
|
68
68
|
- repo: https://github.com/albertas/deadcode
|
|
69
|
-
rev: 2.4.
|
|
69
|
+
rev: 2.4.2
|
|
70
70
|
hooks:
|
|
71
71
|
- id: deadcode
|
|
72
72
|
```
|
|
@@ -197,7 +197,7 @@ code base is implemented in.
|
|
|
197
197
|
- [ ] Investigate ways of extracting and backporting Python3.10+ `ast` implementation to lower Python versions.
|
|
198
198
|
|
|
199
199
|
## Release notes
|
|
200
|
-
-
|
|
200
|
+
- v2.4.2:
|
|
201
201
|
- Add `--tach-config` option to read `tach.toml` file(s) and treat names exposed via `[[interfaces]]`
|
|
202
202
|
as public API, and skip `unchecked = true` modules entirely.
|
|
203
203
|
- v2.4.1:
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
DISTRIBUTION_NAME = 'lapsed' # PyPI project name; differs from this importable package name ("deadcode").
|
|
2
|
+
|
|
3
|
+
try:
|
|
4
|
+
import importlib.metadata
|
|
5
|
+
|
|
6
|
+
__version__ = importlib.metadata.version(DISTRIBUTION_NAME)
|
|
7
|
+
except ImportError:
|
|
8
|
+
import importlib_metadata
|
|
9
|
+
|
|
10
|
+
__version__ = importlib_metadata.version(DISTRIBUTION_NAME)
|
|
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
|
|
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
|