Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ repos:
description: "Automatically convert relative imports to absolute. (Use `args: [--never]` to revert.)"

- repo: https://github.com/psf/black
rev: 24.10.0
rev: 25.1.0
hooks:
- id: black

Expand All @@ -61,7 +61,7 @@ repos:
description: "Enforce that python3.6+ type annotations are used instead of type comments."

- repo: https://github.com/PyCQA/isort
rev: 5.13.2
rev: 6.0.1
hooks:
- id: isort
description: "Sort imports alphabetically, and automatically separated into sections and by type."
Expand All @@ -73,7 +73,7 @@ repos:
- id: djlint-reformat-jinja

- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.43.0
rev: v0.44.0
hooks:
- id: markdownlint
description: "Lint markdown files."
Expand All @@ -88,7 +88,7 @@ repos:
files: ^src/

- repo: https://github.com/pycqa/pylint
rev: v3.3.3
rev: v3.3.6
hooks:
- id: pylint
name: pylint for source
Expand Down
2 changes: 1 addition & 1 deletion src/gitingest/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Gitingest: A package for ingesting data from Git repositories. """
"""Gitingest: A package for ingesting data from Git repositories."""

from gitingest.cloning import clone
from gitingest.entrypoint import ingest, ingest_async
Expand Down
2 changes: 1 addition & 1 deletion src/gitingest/cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Command-line interface for the Gitingest package. """
"""Command-line interface for the Gitingest package."""

# pylint: disable=no-value-for-parameter

Expand Down
2 changes: 1 addition & 1 deletion src/gitingest/cloning.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" This module contains functions for cloning a Git repository to a local path. """
"""This module contains functions for cloning a Git repository to a local path."""

import asyncio
import os
Expand Down
2 changes: 1 addition & 1 deletion src/gitingest/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Configuration file for the project. """
"""Configuration file for the project."""

import tempfile
from pathlib import Path
Expand Down
2 changes: 1 addition & 1 deletion src/gitingest/entrypoint.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Main entry point for ingesting a source and processing its contents. """
"""Main entry point for ingesting a source and processing its contents."""

import asyncio
import inspect
Expand Down
2 changes: 1 addition & 1 deletion src/gitingest/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Custom exceptions for the Gitingest package. """
"""Custom exceptions for the Gitingest package."""


class InvalidPatternError(ValueError):
Expand Down
2 changes: 1 addition & 1 deletion src/gitingest/filesystem_schema.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Define the schema for the filesystem representation. """
"""Define the schema for the filesystem representation."""

from __future__ import annotations

Expand Down
2 changes: 1 addition & 1 deletion src/gitingest/ingestion.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Functions to ingest and analyze a codebase directory or single file. """
"""Functions to ingest and analyze a codebase directory or single file."""

import warnings
from pathlib import Path
Expand Down
2 changes: 1 addition & 1 deletion src/gitingest/ingestion_schema.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" This module contains the dataclasses for the ingestion process. """
"""This module contains the dataclasses for the ingestion process."""

from dataclasses import dataclass
from pathlib import Path
Expand Down
2 changes: 1 addition & 1 deletion src/gitingest/query_parsing.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" This module contains functions to parse and validate input sources and patterns. """
"""This module contains functions to parse and validate input sources and patterns."""

import re
import uuid
Expand Down
2 changes: 1 addition & 1 deletion src/gitingest/utils/ignore_patterns.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Default ignore patterns for Gitingest. """
"""Default ignore patterns for Gitingest."""

from typing import Set

Expand Down
2 changes: 1 addition & 1 deletion src/gitingest/utils/ingestion_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Utility functions for the ingestion process. """
"""Utility functions for the ingestion process."""

import locale
import platform
Expand Down
2 changes: 1 addition & 1 deletion src/gitingest/utils/notebook_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Utilities for processing Jupyter notebooks. """
"""Utilities for processing Jupyter notebooks."""

import json
import warnings
Expand Down
2 changes: 1 addition & 1 deletion src/gitingest/utils/path_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Utility functions for working with file paths. """
"""Utility functions for working with file paths."""

import os
import platform
Expand Down
2 changes: 1 addition & 1 deletion src/gitingest/utils/query_parser_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Utility functions for parsing and validating query parameters. """
"""Utility functions for parsing and validating query parameters."""

import os
import string
Expand Down
2 changes: 1 addition & 1 deletion src/gitingest/utils/textfile_checker_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Utility functions for checking whether a file is likely a text file or a binary file. """
"""Utility functions for checking whether a file is likely a text file or a binary file."""

from pathlib import Path

Expand Down
2 changes: 1 addition & 1 deletion src/gitingest/utils/timeout_wrapper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Utility functions for the Gitingest package. """
"""Utility functions for the Gitingest package."""

import asyncio
import functools
Expand Down
2 changes: 1 addition & 1 deletion src/server/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Main module for the FastAPI application. """
"""Main module for the FastAPI application."""

import os
from pathlib import Path
Expand Down
2 changes: 1 addition & 1 deletion src/server/query_processor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Process a query by parsing input, cloning a repository, and generating a summary. """
"""Process a query by parsing input, cloning a repository, and generating a summary."""

from functools import partial

Expand Down
2 changes: 1 addition & 1 deletion src/server/routers/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" This module contains the routers for the FastAPI application. """
"""This module contains the routers for the FastAPI application."""

from server.routers.download import router as download
from server.routers.dynamic import router as dynamic
Expand Down
2 changes: 1 addition & 1 deletion src/server/routers/download.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" This module contains the FastAPI router for downloading a digest file. """
"""This module contains the FastAPI router for downloading a digest file."""

from fastapi import APIRouter, HTTPException
from fastapi.responses import Response
Expand Down
2 changes: 1 addition & 1 deletion src/server/routers/dynamic.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" This module defines the dynamic router for handling dynamic path requests. """
"""This module defines the dynamic router for handling dynamic path requests."""

from fastapi import APIRouter, Form, Request
from fastapi.responses import HTMLResponse
Expand Down
2 changes: 1 addition & 1 deletion src/server/routers/index.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" This module defines the FastAPI router for the home page of the application. """
"""This module defines the FastAPI router for the home page of the application."""

from fastapi import APIRouter, Form, Request
from fastapi.responses import HTMLResponse
Expand Down
2 changes: 1 addition & 1 deletion src/server/server_config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Configuration for the server. """
"""Configuration for the server."""

from typing import Dict, List

Expand Down
2 changes: 1 addition & 1 deletion src/server/server_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Utility functions for the server. """
"""Utility functions for the server."""

import asyncio
import math
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" Tests for the gitingest cli """
"""Tests for the gitingest cli."""

import os

Expand Down
5 changes: 1 addition & 4 deletions tests/test_flow_integration.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
"""
Integration tests for GitIngest.
These tests cover core functionalities, edge cases, and concurrency handling.
"""
"""Integration tests covering core functionalities, edge cases, and concurrency handling."""

import shutil
from concurrent.futures import ThreadPoolExecutor
Expand Down
Loading