Loading code_quality_analyzer.py +5 −11 Original line number Diff line number Diff line Loading @@ -13,6 +13,7 @@ import json from pathlib import Path from collections import defaultdict, Counter import matplotlib.pyplot as plt import numpy as np import seaborn as sns from typing import Dict, List, Tuple, Any import argparse Loading Loading @@ -77,10 +78,10 @@ class CodeQualityAnalyzer: """Run all code quality tools.""" tools = { 'ruff': ['ruff', 'check', str(self.src_path)], 'flake8': ['flake8', str(self.src_path)], 'mypy': ['mypy', str(self.src_path)], 'pylint': ['pylint', str(self.src_path)], 'isort': ['isort', '--check-only', '--diff', str(self.src_path)], # 'flake8': ['flake8', str(self.src_path)], # 'mypy': ['mypy', str(self.src_path)], # 'pylint': ['pylint', str(self.src_path)], # 'isort': ['isort', '--check-only', '--diff', str(self.src_path)], 'black': ['black', '--check', '--diff', str(self.src_path)] } Loading Loading @@ -305,13 +306,6 @@ def main(): args = parser.parse_args() # Import numpy for matplotlib try: import numpy as np except ImportError: print("Error: numpy is required for plotting. Install it with: pip install numpy") return analyzer = CodeQualityAnalyzer(args.src_path) analyzer.run_analysis() Loading code_quality_report.png 0 → 100644 +503 KiB Loading image diff... pyproject.toml 0 → 100644 +26 −0 Original line number Diff line number Diff line [tool.black] line-length = 88 skip-string-normalization = true [tool.isort] profile = "black" line_length = 88 src_paths = "." skip_gitignore = true [tool.mypy] strict = true strict_equality = true no_implicit_optional = true warn_return_any = true warn_unused_configs = true warn_redundant_casts = true ignore_missing_imports = true ignore_missing_imports_per_module = true disallow_untyped_decorators = false disallow_untyped_defs = true disallow_incomplete_defs = true disallow_subclassing_any = false disallow_any_unimported = false disallow_any_explicit = true disallow_any_generics = true No newline at end of file Loading
code_quality_analyzer.py +5 −11 Original line number Diff line number Diff line Loading @@ -13,6 +13,7 @@ import json from pathlib import Path from collections import defaultdict, Counter import matplotlib.pyplot as plt import numpy as np import seaborn as sns from typing import Dict, List, Tuple, Any import argparse Loading Loading @@ -77,10 +78,10 @@ class CodeQualityAnalyzer: """Run all code quality tools.""" tools = { 'ruff': ['ruff', 'check', str(self.src_path)], 'flake8': ['flake8', str(self.src_path)], 'mypy': ['mypy', str(self.src_path)], 'pylint': ['pylint', str(self.src_path)], 'isort': ['isort', '--check-only', '--diff', str(self.src_path)], # 'flake8': ['flake8', str(self.src_path)], # 'mypy': ['mypy', str(self.src_path)], # 'pylint': ['pylint', str(self.src_path)], # 'isort': ['isort', '--check-only', '--diff', str(self.src_path)], 'black': ['black', '--check', '--diff', str(self.src_path)] } Loading Loading @@ -305,13 +306,6 @@ def main(): args = parser.parse_args() # Import numpy for matplotlib try: import numpy as np except ImportError: print("Error: numpy is required for plotting. Install it with: pip install numpy") return analyzer = CodeQualityAnalyzer(args.src_path) analyzer.run_analysis() Loading
pyproject.toml 0 → 100644 +26 −0 Original line number Diff line number Diff line [tool.black] line-length = 88 skip-string-normalization = true [tool.isort] profile = "black" line_length = 88 src_paths = "." skip_gitignore = true [tool.mypy] strict = true strict_equality = true no_implicit_optional = true warn_return_any = true warn_unused_configs = true warn_redundant_casts = true ignore_missing_imports = true ignore_missing_imports_per_module = true disallow_untyped_decorators = false disallow_untyped_defs = true disallow_incomplete_defs = true disallow_subclassing_any = false disallow_any_unimported = false disallow_any_explicit = true disallow_any_generics = true No newline at end of file