Skip to content

Commit 293b4ae

Browse files
replace non-ASCII chars
1 parent 259044d commit 293b4ae

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/workflows/publish_to_pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Publish to PyPI
22

33
on:
44
release:
5-
types: [created] # Run when you click Publish release
5+
types: [created] # Run when you click "Publish release"
66
workflow_dispatch: # ... or run it manually from the Actions tab
77

88
permissions:
@@ -38,7 +38,7 @@ jobs:
3838
name: dist
3939
path: dist/
4040

41-
# Publish to PyPI (only if dist/ succeeded)
41+
# Publish to PyPI (only if "dist/"" succeeded)
4242
pypi-publish:
4343
needs: release-build
4444
runs-on: ubuntu-latest

src/gitingest/utils/ingestion_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def _should_exclude(path: Path, base_path: Path, ignore_patterns: set[str]) -> b
5959
6060
"""
6161
rel_path = _relative_or_none(path, base_path)
62-
if rel_path is None: # outside repo → already excluded
62+
if rel_path is None: # outside repo → already "excluded"
6363
return True
6464

6565
spec = PathSpec.from_lines("gitwildmatch", ignore_patterns)

src/gitingest/utils/path_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def _is_safe_symlink(symlink_path: Path, base_path: Path) -> bool:
1717
Returns
1818
-------
1919
bool
20-
Whether the symlink is safe (i.e., does not escape ``base_path``).
20+
Whether the symlink is "safe" (i.e., does not escape ``base_path``).
2121
2222
"""
2323
# On Windows a non-symlink is immediately unsafe

tests/test_summary.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
def test_ingest_summary(path_type: str, path: str, ref_type: str, ref: str) -> None:
2828
"""Assert that ``gitingest.ingest()`` emits a concise, 5-or-6-line summary.
2929
30-
- Non-main” refs → 5 key/value pairs + blank line (6 total).
31-
- main” branch → ref line omitted (5 total).
30+
- Non-'main” refs → 5 key/value pairs + blank line (6 total).
31+
- 'main” branch → ref line omitted (5 total).
3232
- Required keys:
3333
- Repository
34-
- ``ref_type`` (absent on main”)
34+
- ``ref_type`` (absent on 'main”)
3535
- File│Subpath (chosen by ``path_type``)
3636
- Lines│Files analyzed (chosen by ``path_type``)
3737
- Estimated tokens (positive integer)
@@ -55,7 +55,7 @@ def test_ingest_summary(path_type: str, path: str, ref_type: str, ref: str) -> N
5555
expected_lines = 6 - int(is_main_branch)
5656
expected_parsed = 5 - int(is_main_branch)
5757

58-
summary, *_ = ingest(f"https://github.com/{REPO}/{path_type}/{ref}{path}")
58+
summary, _, _ = ingest(f"https://github.com/{REPO}/{path_type}/{ref}{path}")
5959
lines = summary.splitlines()
6060
parsed = dict(line.split(": ", 1) for line in lines if ": " in line)
6161

0 commit comments

Comments
 (0)