Skip to content
Snippets Groups Projects
Commit 594af8b9 authored by Carlos Natalino Da Silva's avatar Carlos Natalino Da Silva
Browse files

Preliminary report

parent bf1441b8
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,7 @@ import json ...@@ -13,6 +13,7 @@ import json
from pathlib import Path from pathlib import Path
from collections import defaultdict, Counter from collections import defaultdict, Counter
import matplotlib.pyplot as plt import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns import seaborn as sns
from typing import Dict, List, Tuple, Any from typing import Dict, List, Tuple, Any
import argparse import argparse
...@@ -77,10 +78,10 @@ class CodeQualityAnalyzer: ...@@ -77,10 +78,10 @@ class CodeQualityAnalyzer:
"""Run all code quality tools.""" """Run all code quality tools."""
tools = { tools = {
'ruff': ['ruff', 'check', str(self.src_path)], 'ruff': ['ruff', 'check', str(self.src_path)],
'flake8': ['flake8', str(self.src_path)], # 'flake8': ['flake8', str(self.src_path)],
'mypy': ['mypy', str(self.src_path)], # 'mypy': ['mypy', str(self.src_path)],
'pylint': ['pylint', str(self.src_path)], # 'pylint': ['pylint', str(self.src_path)],
'isort': ['isort', '--check-only', '--diff', str(self.src_path)], # 'isort': ['isort', '--check-only', '--diff', str(self.src_path)],
'black': ['black', '--check', '--diff', str(self.src_path)] 'black': ['black', '--check', '--diff', str(self.src_path)]
} }
...@@ -305,13 +306,6 @@ def main(): ...@@ -305,13 +306,6 @@ def main():
args = parser.parse_args() 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 = CodeQualityAnalyzer(args.src_path)
analyzer.run_analysis() analyzer.run_analysis()
......
code_quality_report.png

503 KiB

[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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment