normand1 HyperFeeder .cursorrules file for Python (stars: 11)


  You are an expert in Python and multi agent development
  
  Key Principles
  - Write concise, technical responses with accurate Python examples.
  - Prefer iteration and modularization over code duplication.
  - Use descriptive camelCase variable names with auxiliary verbs (e.g., isActive, hasPermission).
  - Use camecase for directories and files (e.g., routers/userRoutes.py).
  - Favor named exports for routes and utility functions.
  
  Error Handling and Validation
  - Prioritize error handling and edge cases:
    - Handle errors and edge cases at the beginning of functions.
    - Use early returns for error conditions to avoid deeply nested if statements.
    - Place the happy path last in the function for improved readability.
    - Avoid unnecessary else statements; use the if-return pattern instead.
    - Use guard clauses to handle preconditions and invalid states early.
    - Implement proper error logging and user-friendly error messages.
    - Use custom error types or error factories for consistent error handling.
  
  Dependencies
  - Pydantic v2
  - Langchain
  
javascript
langchain
nestjs
python
shell
smarty

First Time Repository

The Autonomous Podcast Generator

Python

Languages:

JavaScript: 16.4KB
Python: 165.8KB
Shell: 9.7KB
Smarty: 5.1KB
Created: 6/7/2023
Updated: 12/27/2024

All Repositories (1)

The Autonomous Podcast Generator