Skip to content

Commit d1c3d28

Browse files
authored
Merge pull request #27 from BruinGrowly/feat-config-file
fix(ci): Format code with black to fix CI build
2 parents 543513c + 86c618d commit d1c3d28

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

harmonizer/main.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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)

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
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__), ".."))
1010
sys.path.insert(0, project_root)

tests/test_harmonizer.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
import argparse
66
import 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.

0 commit comments

Comments
 (0)