-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix code quality issues and Pydantic v2 migration
- Remove unreachable code in github_provider.py after exception raise - Fix write_file() to always use PUT method for consistency - Fix get_repository_url() to strip /api/v3 from GitHub Enterprise URLs - Fix exception handling in gitlab_provider.py to catch RequestException - Migrate app.py to Pydantic v2 (dict() -> model_dump()) - Remove 11 redundant import statements across multiple modules - Add top-level traceback import to app.py - Fix type annotations (_request() returns Any, not Dict) - Migrate FileContent and TemplateConfig to Pydantic v2 model_config - Remove 6 dead dependencies (PyGithub, python-gitlab, etc.) - Add pydantic>=2.0 to setup.py - Rewrite all test files to use template_automation API - Add __init__.py files for proper package structure - All 14 tests now passing
- Loading branch information
Your Name
committed
Feb 6, 2026
1 parent
83a0b96
commit 44aa5a7
Showing
13 changed files
with
298 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,6 @@ | ||
| # Core dependencies | ||
| PyGithub>=1.59.0 | ||
| pydantic>=2.0.0 | ||
| boto3>=1.26.0 | ||
| requests>=2.28.0 | ||
| jinja2>=3.1.0 | ||
| typing_extensions>=4.4.0 | ||
| pynacl>=1.5.0 # Required by PyGithub for cryptography | ||
| cryptography>=44.0.0 # Required by PyGithub for auth | ||
| pyjwt[crypto]>=2.10.0 # Required by PyGithub for JWT support | ||
| deprecated>=1.2.18 # Required by PyGithub for decorators | ||
| python-gitlab>=3.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,7 @@ | |
| packages=find_packages(), | ||
| install_requires=[ | ||
| "boto3", | ||
| "pydantic>=2.0", | ||
| "requests" | ||
| ], | ||
| extras_require={ | ||
|
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # Test package initialization |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # Integration test package initialization |
Oops, something went wrong.