benjGam KtasExporter .cursorrules file for Python (stars: 4)

# Cursor Rules Configuration

# Rule: benchperf
# Description: Performs a comparative performance analysis between current and develop branches
# Usage: Type 'benchperf' in the conversation
benchperf:
  steps:
    # First test on current branch
    - name: "Current Branch Test"
      commands:
        - "time ./run.sh > /tmp/current_branch_output_1 && time ./run.sh > /tmp/current_branch_output_2 && time ./run.sh > /tmp/current_branch_output_3"
        - "git stash && git checkout develop"
      
    # Test on develop branch
    - name: "Develop Branch Test"
      commands:
        - "git checkout develop"
        - "time ./run.sh > /tmp/develop_branch_output_1 && time ./run.sh > /tmp/develop_branch_output_2 && time ./run.sh > /tmp/develop_branch_output_3"
        
    # Return to original branch
    - name: "Restore State"
      commands:
        - "git checkout $(cat /tmp/current_branch)"
        - "git stash pop"
        
    # Analysis template
    - name: "Analysis Template"
      template: |
        1. Branche `${current_branch}` :
            ```
           Test 1 :

              Temps total : ${current_output_1_total}s
              - User CPU time : ${current_output_1_user}s
              - System CPU time : ${current_output_1_system}s
              - CPU utilization : ${current_output_1_cpu}%

              Étapes :
                ${current_output_1_times_by_step}

           Test 2 :
              Temps total : ${current_output_2_total}s
              - User CPU time : ${current_output_2_user}s
              - System CPU time : ${current_output_2_system}s
              - CPU utilization : ${current_output_2_cpu}%

              Étapes :
                ${current_output_2_times_by_step}

           Test 3 :
              Temps total : ${current_output_3_total}s
              - User CPU time : ${current_output_3_user}s
              - System CPU time : ${current_output_3_system}s
              - CPU utilization : ${current_output_3_cpu}%

              Étapes :
                ${current_output_3_times_by_step}
            ```

            Meilleur test : 
              Temps total : ${best_test_current_total}s
              - User CPU time : ${best_test_current_user}s
              - System CPU time : ${best_test_current_system}s
              - CPU utilization : ${best_test_current_cpu}%

        2. Branche develop :
            ```
           Test 1 :
              Temps total : ${develop_output_1_total}s
              - User CPU time : ${develop_output_1_user}s
              - System CPU time : ${develop_output_1_system}s
              - CPU utilization : ${develop_output_1_cpu}%

              Étapes :
                ${develop_output_1_times_by_step}

           Test 2 :
              Temps total : ${current_output_2_total}s
              - User CPU time : ${develop_output_2_user}s
              - System CPU time : ${develop_output_2_system}s
              - CPU utilization : ${develop_output_2_cpu}%

              Étapes :
                ${develop_output_2_times_by_step}

           Test 3 :
              Temps total : ${current_output_3_total}s
              - User CPU time : ${develop_output_3_user}s
              - System CPU time : ${develop_output_3_system}s
              - CPU utilization : ${develop_output_3_cpu}%

              Étapes :
              ${develop_output_3_times_by_step}
            ```

            Meilleur test : 
              Temps total : ${best_test_develop_total}s
              - User CPU time : ${best_test_develop_user}s
              - System CPU time : ${best_test_develop_system}s
              - CPU utilization : ${best_test_develop_cpu}%

        1. Différences:

           ```
           Différences moyennes : (${current_branch} vs ${develop_branch}): ${ecart_moyen} en faveur de ${best_branch_result}
           Meilleures differences : (${current_branch} vs ${develop_branch}): ${meilleur_ecart} en faveur de ${best_branch_result}
           ```

        2. Explications détaillées:

          ```
          ${detailed_explanation}
          ```

        3. Conclusions:

          ```
          ${conclusions}
          ```

# Rule: prtemplate
# Description: Template standard pour les Pull Requests
# Usage: Automatically applied when creating a Pull Request with GitHub CLI
prtemplate:
  template: |
    # ${pr_title}

    ${pr_short_description}

    ## Changes

    ### ${change_category_1}
    ${changes_list_1}

    ### ${change_category_2}
    ${changes_list_2}

    ### Code Organization
    - ${code_organization_changes}

    ${testing_section}

    ## Impact
    ${impact_short_description}
    1. ${impact_point_1}
    2. ${impact_point_2}
    3. ${impact_point_3}

  variables:
    testing_section:
      optional: true
      template: |
        ## Testing
        - ${test_point_1}
        - ${test_point_2}
        - ${test_point_3}
batchfile
golang
python
rest-api
shell

First Time Repository

A tool to automatically export your Codewars kata solutions to a local repository.

Python

Languages:

Batchfile: 1.7KB
Python: 41.6KB
Shell: 2.7KB
Created: 1/24/2023
Updated: 1/23/2025

All Repositories (1)

A tool to automatically export your Codewars kata solutions to a local repository.