Skip to content

Commit 5e03795

Browse files
Ran pre-commit on cevatkerim's branch to ensure CI passes
1 parent b98647f commit 5e03795

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

src/gitingest/clone.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ async def _check_repo_exists(url: str, pat: str | None = None) -> bool:
5151
True if the repository exists, False otherwise.
5252
"""
5353
# Parse URL to get components
54-
parts = url.split('/')
54+
parts = url.split("/")
5555
if len(parts) < 5: # Need at least protocol, empty, host, username, repo
5656
return False
5757

@@ -60,7 +60,7 @@ async def _check_repo_exists(url: str, pat: str | None = None) -> bool:
6060
repo = parts[4]
6161

6262
# Construct API URL based on host
63-
if 'github.com' in host:
63+
if "github.com" in host:
6464
api_url = url
6565
else:
6666
# For custom Git servers, use API v1 endpoint

src/gitingest/tests/test_clone.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ async def test_check_repo_exists_with_redirect() -> None:
170170
mock_exec.return_value = mock_process
171171
assert await _check_repo_exists(url)
172172

173+
173174
@pytest.mark.asyncio
174175
async def test_check_repo_exists_with_pat() -> None:
175176
url = "https://github.com/user/repo"

src/templates/components/github_form.jinja

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
required
1818
class="border-[3px] w-full relative z-20 border-gray-900 placeholder-gray-600 text-lg font-medium focus:outline-none py-3.5 px-6 rounded">
1919
</div>
20-
2120
<!-- Access Settings Checkbox -->
2221
<div class="flex items-center space-x-2 ml-2">
2322
<input type="checkbox"
@@ -26,7 +25,6 @@
2625
onchange="toggleAccessSettings()">
2726
<label for="showAccessSettings" class="text-gray-900">Access Settings</label>
2827
</div>
29-
3028
<!-- PAT input (hidden by default) -->
3129
<div id="accessSettingsContainer" class="hidden">
3230
<div class="relative w-full h-full">
@@ -39,7 +37,6 @@
3937
class="border-[3px] w-full relative z-20 border-gray-900 placeholder-gray-600 text-lg font-medium focus:outline-none py-3.5 px-6 rounded">
4038
</div>
4139
</div>
42-
4340
<!-- Submit Button -->
4441
<div class="relative w-full sm:w-auto flex-shrink-0 h-full group">
4542
<div class="w-full h-full rounded bg-gray-800 translate-y-1 translate-x-1 absolute inset-0 z-10"></div>
@@ -48,19 +45,16 @@
4845
Ingest
4946
</button>
5047
</div>
51-
5248
<input type="hidden" name="pattern_type" value="exclude">
5349
<input type="hidden" name="pattern" value="">
5450
</form>
55-
5651
<script>
5752
function toggleAccessSettings() {
5853
const container = document.getElementById('accessSettingsContainer');
5954
const checkbox = document.getElementById('showAccessSettings');
6055
container.classList.toggle('hidden', !checkbox.checked);
6156
}
6257
</script>
63-
6458
<div class="mt-4 relative z-20 flex flex-wrap gap-4 items-start">
6559
<!-- Pattern selector -->
6660
<div class="w-[200px] sm:w-[250px] mr-9 mt-4">

0 commit comments

Comments
 (0)