Skip to content

Commit 9da0538

Browse files
committed
style: fix blank line whitespace issues
1 parent 4765afb commit 9da0538

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ build/
1616
develop-eggs/
1717
dist/
1818
downloads/
19+
docs/
1920
eggs/
2021
.eggs/
2122
lib/
@@ -48,6 +49,7 @@ htmlcov/
4849
.coverage.*
4950
.cache
5051
nosetests.xml
52+
CLAUDE.md
5153
coverage.xml
5254
*.cover
5355
*.py,cover

commitloom/__main__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def cli(ctx, debug: bool) -> None:
3535
"""Create structured git commits with AI-generated messages."""
3636
ctx.ensure_object(dict)
3737
ctx.obj["DEBUG"] = debug
38-
38+
3939
if debug:
4040
console.setup_logging(debug=True)
4141

@@ -47,7 +47,7 @@ def cli(ctx, debug: bool) -> None:
4747
def commit(ctx, yes: bool, combine: bool) -> None:
4848
"""Generate commit message and commit changes."""
4949
debug = ctx.obj.get("DEBUG", False)
50-
50+
5151
try:
5252
# Use test_mode=True when running tests (detected by pytest)
5353
test_mode = "pytest" in sys.modules
@@ -67,7 +67,7 @@ def commit(ctx, yes: bool, combine: bool) -> None:
6767
def stats(ctx) -> None:
6868
"""Show usage statistics."""
6969
debug = ctx.obj.get("DEBUG", False)
70-
70+
7171
try:
7272
# Create a CommitLoom instance and run the stats command
7373
loom = CommitLoom(test_mode=True) # Test mode to avoid API key requirement
@@ -84,14 +84,14 @@ def main() -> None:
8484
"""Entry point for the CLI."""
8585
# Check if the first argument is a known command, if not, insert 'commit'
8686
known_commands = ['commit', 'stats']
87-
87+
8888
if len(sys.argv) > 1 and not sys.argv[1].startswith('-') and sys.argv[1] not in known_commands:
8989
sys.argv.insert(1, 'commit')
90-
90+
9191
# If no arguments provided, add 'commit' as the default command
9292
if len(sys.argv) == 1:
9393
sys.argv.append('commit')
94-
94+
9595
cli(obj={})
9696

9797

commitloom/services/ai_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def __init__(self, api_key: str | None = None, test_mode: bool = False):
8585
@property
8686
def model(self) -> str:
8787
"""Get the model name.
88-
88+
8989
Returns:
9090
The model name from config.
9191
"""

commitloom/services/metrics.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,17 +99,17 @@ def _save_statistics(self) -> None:
9999
try:
100100
# Ensure valid data structure before saving
101101
stats_dict = asdict(self._statistics)
102-
102+
103103
# Fix any potential problematic values
104104
if 'repositories' in stats_dict and not isinstance(stats_dict['repositories'], dict):
105105
stats_dict['repositories'] = {}
106-
106+
107107
if 'model_usage' in stats_dict and not isinstance(stats_dict['model_usage'], dict):
108108
stats_dict['model_usage'] = {}
109-
109+
110110
with open(self._stats_file, "w") as f:
111111
json.dump(stats_dict, f, indent=2)
112-
112+
113113
except (OSError, TypeError) as e:
114114
logger.warning(f"Failed to save statistics: {str(e)}")
115115

0 commit comments

Comments
 (0)