enhanced-git 1.0.4__tar.gz → 1.0.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. {enhanced_git-1.0.4 → enhanced_git-1.0.5}/PKG-INFO +1 -1
  2. {enhanced_git-1.0.4 → enhanced_git-1.0.5}/gitai/config.py +12 -5
  3. {enhanced_git-1.0.4 → enhanced_git-1.0.5}/pyproject.toml +1 -1
  4. {enhanced_git-1.0.4 → enhanced_git-1.0.5}/.gitai.toml +0 -0
  5. {enhanced_git-1.0.4 → enhanced_git-1.0.5}/.github/workflows/ci.yml +0 -0
  6. {enhanced_git-1.0.4 → enhanced_git-1.0.5}/.github/workflows/release.yml +0 -0
  7. {enhanced_git-1.0.4 → enhanced_git-1.0.5}/.gitignore +0 -0
  8. {enhanced_git-1.0.4 → enhanced_git-1.0.5}/.pre-commit-config.yaml +0 -0
  9. {enhanced_git-1.0.4 → enhanced_git-1.0.5}/CONTRIBUTING.md +0 -0
  10. {enhanced_git-1.0.4 → enhanced_git-1.0.5}/LICENSE +0 -0
  11. {enhanced_git-1.0.4 → enhanced_git-1.0.5}/Makefile +0 -0
  12. {enhanced_git-1.0.4 → enhanced_git-1.0.5}/README.md +0 -0
  13. {enhanced_git-1.0.4 → enhanced_git-1.0.5}/gitai/__init__.py +0 -0
  14. {enhanced_git-1.0.4 → enhanced_git-1.0.5}/gitai/changelog.py +0 -0
  15. {enhanced_git-1.0.4 → enhanced_git-1.0.5}/gitai/cli.py +0 -0
  16. {enhanced_git-1.0.4 → enhanced_git-1.0.5}/gitai/commit.py +0 -0
  17. {enhanced_git-1.0.4 → enhanced_git-1.0.5}/gitai/constants.py +0 -0
  18. {enhanced_git-1.0.4 → enhanced_git-1.0.5}/gitai/diff.py +0 -0
  19. {enhanced_git-1.0.4 → enhanced_git-1.0.5}/gitai/hook.py +0 -0
  20. {enhanced_git-1.0.4 → enhanced_git-1.0.5}/gitai/providers/__init__.py +0 -0
  21. {enhanced_git-1.0.4 → enhanced_git-1.0.5}/gitai/providers/base.py +0 -0
  22. {enhanced_git-1.0.4 → enhanced_git-1.0.5}/gitai/providers/ollama_provider.py +0 -0
  23. {enhanced_git-1.0.4 → enhanced_git-1.0.5}/gitai/providers/openai_provider.py +0 -0
  24. {enhanced_git-1.0.4 → enhanced_git-1.0.5}/gitai/util.py +0 -0
  25. {enhanced_git-1.0.4 → enhanced_git-1.0.5}/tests/__init__.py +0 -0
  26. {enhanced_git-1.0.4 → enhanced_git-1.0.5}/tests/test_changelog.py +0 -0
  27. {enhanced_git-1.0.4 → enhanced_git-1.0.5}/tests/test_diff.py +0 -0
  28. {enhanced_git-1.0.4 → enhanced_git-1.0.5}/tests/test_hook_integration.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: enhanced-git
3
- Version: 1.0.4
3
+ Version: 1.0.5
4
4
  Summary: Generate Conventional Commit messages and changelog sections using AI
5
5
  Project-URL: Homepage, https://github.com/mxzahid/git-ai
6
6
  Project-URL: Repository, https://github.com/mxzahid/git-ai
@@ -79,14 +79,19 @@ class Config:
79
79
 
80
80
  llm_config = LLMConfig(
81
81
  provider=configured_provider,
82
- model=llm_data.get("model", "gpt-4o-mini" if configured_provider == "openai" else "qwen2.5-coder:3b"),
82
+ model=llm_data.get(
83
+ "model",
84
+ (
85
+ "gpt-4o-mini"
86
+ if configured_provider == "openai"
87
+ else "qwen2.5-coder:3b"
88
+ ),
89
+ ),
83
90
  max_tokens=llm_data.get("max_tokens", 300),
84
91
  temperature=llm_data.get("temperature", 0.0),
85
92
  timeout_seconds=llm_data.get("timeout_seconds", 45),
86
93
  api_key=(
87
- os.getenv("OPENAI_API_KEY")
88
- if configured_provider == "openai"
89
- else None
94
+ os.getenv("OPENAI_API_KEY") if configured_provider == "openai" else None
90
95
  ),
91
96
  base_url=(
92
97
  os.getenv("OLLAMA_BASE_URL", "http://localhost:11434")
@@ -127,5 +132,7 @@ class Config:
127
132
  return self.llm.api_key is not None
128
133
  elif self.llm.provider == "ollama":
129
134
  # for ollama we assume it's available if base_url is set or model is configured
130
- return self.llm.base_url is not None or os.getenv("OLLAMA_MODEL") is not None
135
+ return (
136
+ self.llm.base_url is not None or os.getenv("OLLAMA_MODEL") is not None
137
+ )
131
138
  return False
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "enhanced-git"
7
- version = "1.0.4"
7
+ version = "1.0.5"
8
8
  description = "Generate Conventional Commit messages and changelog sections using AI"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes