Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions harmonizer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,7 @@ def load_configuration() -> Dict:
return config
return {}
except (yaml.YAMLError, IOError) as e:
print(
f"WARNING: Could not load or parse config: {e}", file=sys.stderr
)
print(f"WARNING: Could not load or parse config: {e}", file=sys.stderr)
return {}

parent_dir = os.path.dirname(current_dir)
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
# Add the project root to the Python path.
# This ensures that the 'harmonizer' package is discoverable by pytest,
# regardless of how the project is installed or the current working directory.
project_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
project_root = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
sys.path.insert(0, project_root)
6 changes: 5 additions & 1 deletion tests/test_harmonizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
import argparse
import pytest

from harmonizer.main import PythonCodeHarmonizer, load_configuration, validate_cli_arguments
from harmonizer.main import (
PythonCodeHarmonizer,
load_configuration,
validate_cli_arguments,
)

# A self-contained Python script to be used for testing.
# It contains one harmonious function and one disharmonious one.
Expand Down