complexipy 0.3.1__tar.gz → 0.3.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.
- {complexipy-0.3.1 → complexipy-0.3.2}/Cargo.lock +1 -1
- {complexipy-0.3.1 → complexipy-0.3.2}/Cargo.toml +1 -1
- {complexipy-0.3.1 → complexipy-0.3.2}/PKG-INFO +3 -3
- {complexipy-0.3.1 → complexipy-0.3.2}/README.md +2 -2
- {complexipy-0.3.1 → complexipy-0.3.2}/complexipy/main.py +1 -1
- {complexipy-0.3.1 → complexipy-0.3.2}/complexipy/utils.py +5 -1
- {complexipy-0.3.1 → complexipy-0.3.2}/docs/index.md +2 -2
- {complexipy-0.3.1 → complexipy-0.3.2}/LICENSE +0 -0
- {complexipy-0.3.1 → complexipy-0.3.2}/complexipy/__init__.py +0 -0
- {complexipy-0.3.1 → complexipy-0.3.2}/complexipy/types.py +0 -0
- {complexipy-0.3.1 → complexipy-0.3.2}/docs/img/favicon.svg +0 -0
- {complexipy-0.3.1 → complexipy-0.3.2}/docs/img/icon.svg +0 -0
- {complexipy-0.3.1 → complexipy-0.3.2}/docs/img/logo-vector.svg +0 -0
- {complexipy-0.3.1 → complexipy-0.3.2}/mkdocs.yml +0 -0
- {complexipy-0.3.1 → complexipy-0.3.2}/pyproject.toml +0 -0
- {complexipy-0.3.1 → complexipy-0.3.2}/src/classes/mod.rs +0 -0
- {complexipy-0.3.1 → complexipy-0.3.2}/src/cognitive_complexity/mod.rs +0 -0
- {complexipy-0.3.1 → complexipy-0.3.2}/src/cognitive_complexity/utils.rs +0 -0
- {complexipy-0.3.1 → complexipy-0.3.2}/src/lib.rs +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: complexipy
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
@@ -100,7 +100,7 @@ complexipy path/to/directory -s desc # Use the -s option to set the sort orde
|
|
|
100
100
|
If set to 0, the exit with error will be disabled.
|
|
101
101
|
- `-o` or `--output`: Output the results to a CSV file, default is False. The
|
|
102
102
|
filename will be `complexipy.csv` and will be saved in the invocation directory.
|
|
103
|
-
- `-d` or `--
|
|
103
|
+
- `-d` or `--details`: Set the detail level, default is "normal". If set to "low"
|
|
104
104
|
will show only files or functions with complexity greater than the maximum
|
|
105
105
|
complexity.
|
|
106
106
|
- `-l` or `--level` Set the level of measurement, default is "function". If set
|
|
@@ -144,7 +144,7 @@ The cognitive complexity of the file is 1, and the output of the command
|
|
|
144
144
|
`complexipy path/to/file.py` will be:
|
|
145
145
|
|
|
146
146
|
```txt
|
|
147
|
-
───────────────────────────── 🐙 complexipy 0.3.
|
|
147
|
+
───────────────────────────── 🐙 complexipy 0.3.2 ──────────────────────────────
|
|
148
148
|
Summary
|
|
149
149
|
┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
|
|
150
150
|
┃ Path ┃ File ┃ Function ┃ Complexity ┃
|
|
@@ -82,7 +82,7 @@ complexipy path/to/directory -s desc # Use the -s option to set the sort orde
|
|
|
82
82
|
If set to 0, the exit with error will be disabled.
|
|
83
83
|
- `-o` or `--output`: Output the results to a CSV file, default is False. The
|
|
84
84
|
filename will be `complexipy.csv` and will be saved in the invocation directory.
|
|
85
|
-
- `-d` or `--
|
|
85
|
+
- `-d` or `--details`: Set the detail level, default is "normal". If set to "low"
|
|
86
86
|
will show only files or functions with complexity greater than the maximum
|
|
87
87
|
complexity.
|
|
88
88
|
- `-l` or `--level` Set the level of measurement, default is "function". If set
|
|
@@ -126,7 +126,7 @@ The cognitive complexity of the file is 1, and the output of the command
|
|
|
126
126
|
`complexipy path/to/file.py` will be:
|
|
127
127
|
|
|
128
128
|
```txt
|
|
129
|
-
───────────────────────────── 🐙 complexipy 0.3.
|
|
129
|
+
───────────────────────────── 🐙 complexipy 0.3.2 ──────────────────────────────
|
|
130
130
|
Summary
|
|
131
131
|
┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
|
|
132
132
|
┃ Path ┃ File ┃ Function ┃ Complexity ┃
|
|
@@ -32,7 +32,11 @@ def output_summary(
|
|
|
32
32
|
table, has_success, total_complexity = create_table_function_level(
|
|
33
33
|
files, max_complexity, details, sort
|
|
34
34
|
)
|
|
35
|
-
|
|
35
|
+
|
|
36
|
+
if details == DetailTypes.low and table.row_count < 1:
|
|
37
|
+
console.print(f"No {'file' if file_level else 'function'}{'s' if len(files) > 1 else ''} were found with complexity greater than {max_complexity}.")
|
|
38
|
+
else:
|
|
39
|
+
console.print(Align.center(table))
|
|
36
40
|
console.print(f":brain: Total Cognitive Complexity in {path}: {total_complexity}")
|
|
37
41
|
|
|
38
42
|
return has_success
|
|
@@ -82,7 +82,7 @@ complexipy path/to/directory -s desc # Use the -s option to set the sort orde
|
|
|
82
82
|
If set to 0, the exit with error will be disabled.
|
|
83
83
|
- `-o` or `--output`: Output the results to a CSV file, default is False. The
|
|
84
84
|
filename will be `complexipy.csv` and will be saved in the invocation directory.
|
|
85
|
-
- `-d` or `--
|
|
85
|
+
- `-d` or `--details`: Set the detail level, default is "normal". If set to "low"
|
|
86
86
|
will show only files or functions with complexity greater than the maximum
|
|
87
87
|
complexity.
|
|
88
88
|
- `-l` or `--level` Set the level of measurement, default is "function". If set
|
|
@@ -126,7 +126,7 @@ The cognitive complexity of the file is 1, and the output of the command
|
|
|
126
126
|
`complexipy path/to/file.py` will be:
|
|
127
127
|
|
|
128
128
|
```txt
|
|
129
|
-
───────────────────────────── 🐙 complexipy 0.3.
|
|
129
|
+
───────────────────────────── 🐙 complexipy 0.3.2 ──────────────────────────────
|
|
130
130
|
Summary
|
|
131
131
|
┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
|
|
132
132
|
┃ Path ┃ File ┃ Function ┃ Complexity ┃
|
|
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
|