diff --git a/phi_complexity/cli.py b/phi_complexity/cli.py index 05bcac9..2b01855 100644 --- a/phi_complexity/cli.py +++ b/phi_complexity/cli.py @@ -738,8 +738,7 @@ def _executer_memory() -> int: def _executer_fund() -> None: """Affiche le message de soutien à la recherche souveraine.""" - print( - """ + print(""" ╔══════════════════════════════════════════════════╗ ║ PHI-COMPLEXITY — RECHERCHE SOUVERAINE ║ ╚══════════════════════════════════════════════════╝ @@ -756,8 +755,7 @@ def _executer_fund() -> None: ◈ WEB : https://phidelia.dev Merci de participer à la SUTURE universelle. ✦ - """ - ) + """) def _executer_vault(args: argparse.Namespace, fichiers: List[str]) -> int: diff --git a/tests/test_metriques.py b/tests/test_metriques.py index ff5685f..5866402 100644 --- a/tests/test_metriques.py +++ b/tests/test_metriques.py @@ -196,15 +196,13 @@ def test_entropie_fibonacci_present_dans_resultat(self): from phi_complexity.analyseur import AnalyseurPhi from phi_complexity.metriques import CalculateurRadiance - code = textwrap.dedent( - """ + code = textwrap.dedent(""" def f(x): return x * 2 def g(a, b): return a + b - """ - ) + """) with tempfile.NamedTemporaryFile( mode="w", suffix=".py", delete=False, encoding="utf-8" ) as temp_file: @@ -339,12 +337,10 @@ def test_coherence_bayes_dans_resultat_calculer(self, tmp_path): from phi_complexity.analyseur import AnalyseurPhi from phi_complexity.metriques import CalculateurRadiance - code = textwrap.dedent( - """\ + code = textwrap.dedent("""\ def f(): pass def g(): pass - """ - ) + """) f = tmp_path / "test.py" f.write_text(code) r = AnalyseurPhi(str(f)).analyser() diff --git a/tests/test_securite.py b/tests/test_securite.py index 4d3e1ae..80b3253 100644 --- a/tests/test_securite.py +++ b/tests/test_securite.py @@ -558,8 +558,7 @@ def test_phi_quality_annotations_excluded_from_security_gate(self): try: file_path = os.path.join(tmpdir, "complexe.py") with open(file_path, "w", encoding="utf-8") as f: - f.write( - """def f(a, b, c): + f.write("""def f(a, b, c): if a: if b: if c: @@ -573,8 +572,7 @@ def test_phi_quality_annotations_excluded_from_security_gate(self): if (a and b) or (b and c) or (a and c): return 5 return 0 -""" - ) +""") audit = construire_audit_securite([file_path]) summary = audit["summary"]