Giter Club home page Giter Club logo

prose's Introduction

Prose

Servier Inspired

A developer tool to bring the power of LLM to the CI/CD by ensuring documentation and unit tests for an entire source tree.

Gettin Started

Prose is a tool to document and generate tests for Java and Python projects using LLM. It allows for easy addition of new languages and LLM systems, such as Azure OpenAI (as the default). Prose parses source code and generates comments and tests incrementally. Prose can also be integrated into a CI/CD pipeline and halt if there are classes or methods without documentation or tests. Additionally, Prose collects all information and adds a summary to the README file.

Feature overview

  • Support OpenAI
    • Documentation: OK
    • Test generation: OK
  • Support Java
    • Documentation: OK (JAVADOC)
    • Test generation: In progress (JUNIT)
  • Support Python
    • Documentation: TBD
    • Test generation: TBD
  • Support Behave
    • Test generation: TBD
  • Support Poetry
    • Documentation: TBD
  • Support Maven
    • Documentation: TBD

How does it work?

Prose works in 3 steps:

  • Step 1: Prose parses a tree source, collects non documented classes and methods and proposes comments and tests using LLM. The sources are not modified.

  • Step 2: The developer checks the propositions and amends them.

  • Step 3: Prose merge the comments and the tests.

Getting Started

Initialization

prose config set-base-path src

Step 1 - Generate the prose.json collecting classes and methods within the src folder and documenting them

prose add .

Step 2 - Review the propositions

prose status

Compare to an original file

prose diff <blob_id>

Step 3 - Merge the final comments and tests in place

prose commit --merge

Branch management

Create or switch to a branch

prose branch checkout <branch_name>

Print the current branch

prose branch show

Requirements

TBD by Prose

Install

Use git to clone this repository into your computer.

git clone https://gitlab.com/romualdrousseau/prose.git

Contribute

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Authors

Version History

  • 0.1.0
  • Initial Release

prose's People

Contributors

romualdrousseau avatar

Stargazers

Hubert Tournier avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.