deadcode 1.1.0__tar.gz → 1.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.
- {deadcode-1.1.0 → deadcode-1.1.1}/PKG-INFO +2 -2
- {deadcode-1.1.0 → deadcode-1.1.1}/README.md +1 -1
- {deadcode-1.1.0 → deadcode-1.1.1}/deadcode/actions/get_unused_names_error_message.py +1 -1
- {deadcode-1.1.0 → deadcode-1.1.1}/deadcode/actions/parse_abstract_syntax_trees.py +1 -1
- {deadcode-1.1.0 → deadcode-1.1.1}/deadcode/actions/parse_arguments.py +1 -1
- {deadcode-1.1.0 → deadcode-1.1.1}/deadcode/cli.py +1 -1
- {deadcode-1.1.0 → deadcode-1.1.1}/deadcode/data_types.py +1 -1
- {deadcode-1.1.0 → deadcode-1.1.1}/pyproject.toml +1 -1
- {deadcode-1.1.0 → deadcode-1.1.1}/.gitignore +0 -0
- {deadcode-1.1.0 → deadcode-1.1.1}/LICENSE +0 -0
- {deadcode-1.1.0 → deadcode-1.1.1}/deadcode/__init__.py +0 -0
- {deadcode-1.1.0 → deadcode-1.1.1}/deadcode/actions/__init__.py +0 -0
- {deadcode-1.1.0 → deadcode-1.1.1}/deadcode/actions/find_python_filenames.py +0 -0
- {deadcode-1.1.0 → deadcode-1.1.1}/deadcode/actions/find_unused_names.py +0 -0
- {deadcode-1.1.0 → deadcode-1.1.1}/deadcode/actions/parse_global_names.py +0 -0
- {deadcode-1.1.0 → deadcode-1.1.1}/deadcode/actions/read_files.py +0 -0
- {deadcode-1.1.0 → deadcode-1.1.1}/deadcode/tests/base.py +0 -0
- {deadcode-1.1.0 → deadcode-1.1.1}/deadcode/tests/files/classes.py +0 -0
- {deadcode-1.1.0 → deadcode-1.1.1}/deadcode/tests/files/functions.py +0 -0
- {deadcode-1.1.0 → deadcode-1.1.1}/deadcode/tests/files/subdir/another_subdir/__init__.py +0 -0
- {deadcode-1.1.0 → deadcode-1.1.1}/deadcode/tests/files/subdir/one_more_file.py +0 -0
- {deadcode-1.1.0 → deadcode-1.1.1}/deadcode/tests/files/variables.py +0 -0
- {deadcode-1.1.0 → deadcode-1.1.1}/deadcode/tests/test_command_line_argument_parsing.py +0 -0
- {deadcode-1.1.0 → deadcode-1.1.1}/deadcode/tests/test_count_output.py +0 -0
- {deadcode-1.1.0 → deadcode-1.1.1}/deadcode/tests/test_deadcode.py +0 -0
- {deadcode-1.1.0 → deadcode-1.1.1}/deadcode/tests/test_ignore_names_by_pattern.py +0 -0
- {deadcode-1.1.0 → deadcode-1.1.1}/deadcode/utils/__init__.py +0 -0
- {deadcode-1.1.0 → deadcode-1.1.1}/deadcode/utils/flatten_lists.py +0 -0
- {deadcode-1.1.0 → deadcode-1.1.1}/deadcode/utils/path_matching.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: deadcode
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.1
|
|
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/
|
|
@@ -56,7 +56,7 @@ Command line options:
|
|
|
56
56
|
|<pre>--ignore-names-in-files</pre> | list | Unused names from files matching provided path expressions. |
|
|
57
57
|
|<pre>--no-color</pre> | None | Removes colors from the output. |
|
|
58
58
|
|<pre>--count</pre> | None | Provides the count of the detected unused names instead of printing them all out. |
|
|
59
|
-
|<pre>--
|
|
59
|
+
|<pre>--quiet</pre> | None | Does not output anything. Makefile still fails with exit code 1 if unused names are found. |
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
## Contributing
|
|
@@ -36,7 +36,7 @@ Command line options:
|
|
|
36
36
|
|<pre>--ignore-names-in-files</pre> | list | Unused names from files matching provided path expressions. |
|
|
37
37
|
|<pre>--no-color</pre> | None | Removes colors from the output. |
|
|
38
38
|
|<pre>--count</pre> | None | Provides the count of the detected unused names instead of printing them all out. |
|
|
39
|
-
|<pre>--
|
|
39
|
+
|<pre>--quiet</pre> | None | Does not output anything. Makefile still fails with exit code 1 if unused names are found. |
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
## Contributing
|
|
@@ -11,7 +11,7 @@ def parse_abstract_syntax_trees(files: Dict[Filename, FileContent], args: Args)
|
|
|
11
11
|
try:
|
|
12
12
|
abstract_syntax_trees_for_files[filename] = ast.dump(ast.parse(file_content)) # Note: indent=1 for debug
|
|
13
13
|
except: # noqa: E722
|
|
14
|
-
if not args.count and not args.
|
|
14
|
+
if not args.count and not args.quiet:
|
|
15
15
|
print(f"Error: Failed to parse {filename} file, ignoring it.")
|
|
16
16
|
abstract_syntax_trees_for_files[filename] = ""
|
|
17
17
|
return abstract_syntax_trees_for_files
|
|
@@ -58,7 +58,7 @@ def parse_arguments(args: Optional[List[str]]) -> Args:
|
|
|
58
58
|
default=False,
|
|
59
59
|
)
|
|
60
60
|
parser.add_argument(
|
|
61
|
-
"--
|
|
61
|
+
"--quiet",
|
|
62
62
|
help="Does not output anything. Makefile still fails with exit code 1 if unused names are found.",
|
|
63
63
|
action="store_true",
|
|
64
64
|
default=False,
|
|
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
|