jhanley634 / dojo-blackboard

An HTMX webserver for the Dojo's Tuesday night python meetups.
MIT License
3 stars 1 forks source link

32 swiper #35

Closed jhanley634 closed 3 weeks ago

jhanley634 commented 3 weeks ago

Summary by Sourcery

New Features:

sourcery-ai[bot] commented 3 weeks ago

Reviewer's Guide by Sourcery

This PR introduces a simple source lines of code (SLOC) counter script using Python. The implementation uses the typer library for CLI handling and provides basic functionality to count the total number of lines in a given file.

Class diagram for the SLOC counter script

classDiagram
    class SlocCounter {
        +count_sloc(in_file: Path)
    }

    class Path {
    }

    class Typer {
    }

    SlocCounter --> Path
    SlocCounter --> Typer

    note for SlocCounter "This class provides a method to count the number of lines in a file using the Typer library for CLI handling."

File-Level Changes

Change Details Files
Implementation of a basic SLOC counter script
  • Created a function to count total lines in a file
  • Set up typer CLI interface for command-line usage
  • Added file handling with Path object for input file
src/bboard/sloc/sloc.py

Tips and commands #### Interacting with Sourcery - **Trigger a new review:** Comment `@sourcery-ai review` on the pull request. - **Continue discussions:** Reply directly to Sourcery's review comments. - **Generate a GitHub issue from a review comment:** Ask Sourcery to create an issue from a review comment by replying to it. - **Generate a pull request title:** Write `@sourcery-ai` anywhere in the pull request title to generate a title at any time. - **Generate a pull request summary:** Write `@sourcery-ai summary` anywhere in the pull request body to generate a PR summary at any time. You can also use this command to specify where the summary should be inserted. #### Customizing Your Experience Access your [dashboard](https://app.sourcery.ai) to: - Enable or disable review features such as the Sourcery-generated pull request summary, the reviewer's guide, and others. - Change the review language. - Add, remove or edit custom review instructions. - Adjust other review settings. #### Getting Help - [Contact our support team](mailto:support@sourcery.ai) for questions or feedback. - Visit our [documentation](https://docs.sourcery.ai) for detailed guides and information. - Keep in touch with the Sourcery team by following us on [X/Twitter](https://x.com/SourceryAI), [LinkedIn](https://www.linkedin.com/company/sourcery-ai/) or [GitHub](https://github.com/sourcery-ai).