File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -84,9 +84,7 @@ def load_configuration() -> Dict:
8484 return config
8585 return {}
8686 except (yaml .YAMLError , IOError ) as e :
87- print (
88- f"WARNING: Could not load or parse config: { e } " , file = sys .stderr
89- )
87+ print (f"WARNING: Could not load or parse config: { e } " , file = sys .stderr )
9088 return {}
9189
9290 parent_dir = os .path .dirname (current_dir )
Original file line number Diff line number Diff line change 66# Add the project root to the Python path.
77# This ensures that the 'harmonizer' package is discoverable by pytest,
88# regardless of how the project is installed or the current working directory.
9- project_root = os .path .abspath (os .path .join (os .path .dirname (__file__ ), '..' ))
9+ project_root = os .path .abspath (os .path .join (os .path .dirname (__file__ ), ".." ))
1010sys .path .insert (0 , project_root )
Original file line number Diff line number Diff line change 55import argparse
66import pytest
77
8- from harmonizer .main import PythonCodeHarmonizer , load_configuration , validate_cli_arguments
8+ from harmonizer .main import (
9+ PythonCodeHarmonizer ,
10+ load_configuration ,
11+ validate_cli_arguments ,
12+ )
913
1014# A self-contained Python script to be used for testing.
1115# It contains one harmonious function and one disharmonious one.
You can’t perform that action at this time.
0 commit comments