complexipy 2.0.0__tar.gz → 2.1.0__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.
@@ -54,7 +54,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
54
54
 
55
55
  [[package]]
56
56
  name = "complexipy"
57
- version = "2.0.0"
57
+ version = "2.1.0"
58
58
  dependencies = [
59
59
  "csv",
60
60
  "ignore",
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "complexipy"
3
- version = "2.0.0"
3
+ version = "2.1.0"
4
4
  edition = "2021"
5
5
  authors = ["Robin Quintero <rohaquinlop301@gmail.com>"]
6
6
  license = "MIT"
@@ -1,13 +1,26 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: complexipy
3
- Version: 2.0.0
4
- Classifier: Programming Language :: Rust
5
- Classifier: Programming Language :: Python :: Implementation :: CPython
6
- Classifier: Programming Language :: Python :: Implementation :: PyPy
3
+ Version: 2.1.0
4
+ Classifier: Development Status :: 5 - Production/Stable
5
+ Classifier: Environment :: Console
6
+ Classifier: Intended Audience :: Developers
7
+ Classifier: Operating System :: OS Independent
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Classifier: Programming Language :: Python
10
+ Classifier: Programming Language :: Python :: 3.8
11
+ Classifier: Programming Language :: Python :: 3.9
12
+ Classifier: Programming Language :: Python :: 3.10
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Programming Language :: Python :: 3 :: Only
17
+ Classifier: Topic :: Software Development :: Quality Assurance
18
+ Classifier: Topic :: Software Development :: Testing
19
+ Classifier: Topic :: Software Development :: Libraries
7
20
  Requires-Dist: typer==0.12.5
8
21
  License-File: LICENSE
9
22
  Summary: An extremely fast Python library to calculate the cognitive complexity of Python files, written in Rust.
10
- Keywords: cognitive,complexity,cognitive complexity,rust,fast
23
+ Keywords: cognitive,complexity,cognitive complexity,quality,quality assurance,testing,libraries,performance,sonar
11
24
  Home-Page: https://github.com/rohaquinlop/complexipy
12
25
  Author: Robin Quintero <rohaquinlop301@gmail.com>
13
26
  Author-email: Robin Quintero <rohaquinlop301@gmail.com>
@@ -22,7 +22,7 @@ import typer
22
22
 
23
23
  app = typer.Typer(name="complexipy")
24
24
  console = Console()
25
- version = "2.0.0"
25
+ version = "2.1.0"
26
26
 
27
27
 
28
28
  @app.command()
@@ -74,7 +74,7 @@ def main(
74
74
  has_success = has_success_functions(files_complexities, max_complexity)
75
75
 
76
76
  console.print(
77
- f"{len(files_complexities)} file{'s' if len(files_complexities)> 1 else ''} analyzed in {execution_time:.4f} seconds"
77
+ f"{len(files_complexities)} file{'s' if len(files_complexities) > 1 else ''} analyzed in {execution_time:.4f} seconds"
78
78
  )
79
79
  console.rule(":tada: Analysis completed! :tada:")
80
80
 
@@ -162,7 +162,7 @@ def b_decorator(a, b):
162
162
  Running `complexipy path/to/file.py` produces:
163
163
 
164
164
  ```txt
165
- ───────────────────────────── 🐙 complexipy 2.0.0 ──────────────────────────────
165
+ ───────────────────────────── 🐙 complexipy 2.1.0 ──────────────────────────────
166
166
  Summary
167
167
  ┏━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━┓
168
168
  ┃ Path ┃ File ┃ Function ┃ Complexity ┃
@@ -0,0 +1,49 @@
1
+ [build-system]
2
+ requires = ["maturin>=1.4,<2.0"]
3
+ build-backend = "maturin"
4
+
5
+ [project]
6
+ name = "complexipy"
7
+ keywords = [
8
+ "cognitive",
9
+ "complexity",
10
+ "cognitive complexity",
11
+ "quality",
12
+ "quality assurance",
13
+ "testing",
14
+ "libraries",
15
+ "performance",
16
+ "sonar",
17
+ ]
18
+ requires-python = ">=3.8"
19
+ classifiers = [
20
+ "Development Status :: 5 - Production/Stable",
21
+ "Environment :: Console",
22
+ "Intended Audience :: Developers",
23
+ "Operating System :: OS Independent",
24
+ "License :: OSI Approved :: MIT License",
25
+ "Programming Language :: Python",
26
+ "Programming Language :: Python :: 3.8",
27
+ "Programming Language :: Python :: 3.9",
28
+ "Programming Language :: Python :: 3.10",
29
+ "Programming Language :: Python :: 3.11",
30
+ "Programming Language :: Python :: 3.12",
31
+ "Programming Language :: Python :: 3.13",
32
+ "Programming Language :: Python :: 3 :: Only",
33
+ "Topic :: Software Development :: Quality Assurance",
34
+ "Topic :: Software Development :: Testing",
35
+ "Topic :: Software Development :: Libraries",
36
+ ]
37
+ dynamic = ["version"]
38
+
39
+ dependencies = ["typer==0.12.5"]
40
+
41
+ [project.scripts]
42
+ complexipy = "complexipy.main:app"
43
+
44
+ [tool.maturin]
45
+ features = ["pyo3/extension-module"]
46
+ module-name = "complexipy.rust"
47
+
48
+ [dependency-groups]
49
+ dev = ["maturin>=1.8.3", "mkdocs-material>=9.6.12", "pytest>=8.3.5"]
@@ -135,9 +135,6 @@ pub fn count_bool_ops(expr: ast::Expr, nesting_level: u64) -> u64 {
135
135
  }
136
136
  }
137
137
  ast::Expr::Dict(d) => {
138
- for item in d.iter_keys() {
139
- complexity += count_bool_ops(item.unwrap().clone(), nesting_level);
140
- }
141
138
  for value in d.iter_values() {
142
139
  complexity += count_bool_ops(value.clone(), nesting_level);
143
140
  }
@@ -1,30 +0,0 @@
1
- [build-system]
2
- requires = ["maturin>=1.4,<2.0"]
3
- build-backend = "maturin"
4
-
5
- [project]
6
- name = "complexipy"
7
- keywords = ["cognitive", "complexity", "cognitive complexity", "rust", "fast"]
8
- requires-python = ">=3.8"
9
- classifiers = [
10
- "Programming Language :: Rust",
11
- "Programming Language :: Python :: Implementation :: CPython",
12
- "Programming Language :: Python :: Implementation :: PyPy",
13
- ]
14
- dynamic = ["version"]
15
-
16
- dependencies = ["typer==0.12.5"]
17
-
18
- [project.scripts]
19
- complexipy = "complexipy.main:app"
20
-
21
- [tool.maturin]
22
- features = ["pyo3/extension-module"]
23
- module-name = "complexipy.rust"
24
-
25
- [dependency-groups]
26
- dev = [
27
- "maturin>=1.8.3",
28
- "mkdocs-material>=9.6.12",
29
- "pytest>=8.3.5",
30
- ]
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes