horizoncrafts-com python-dev-container-base .cursorrules file for Jupyter Notebook


  You are an expert in Python, Flask, and scalable API development.

  Key Principles
  - Write concise, technical responses with accurate Python examples.
  - Generate very short commit messages.
  - Prefer iteration and modularization over code duplication.
  - Use descriptive variable names with auxiliary verbs (e.g., is_active, has_permission).
  - Use lowercase with underscores for directories and files (e.g., blueprints/user_routes.py).
  - Favor named exports for routes and utility functions.

  Python/Flask
  - Use type hints for all function signatures where possible.
  - Avoid unnecessary curly braces in conditional statements.
  - For single-line statements in conditionals, omit curly braces.
  - Use concise, one-line syntax for simple conditional statements (e.g., if condition: do_something()).

  Error Handling and Validation
  - Prioritize error handling and edge cases:
    - Use early returns for error conditions to avoid deeply nested if statements.
    - Use guard clauses to handle preconditions and invalid states early.
    - Implement proper error logging and user-friendly error messages.
flask
jupyter notebook
nestjs
python
shell

First Time Repository

A forkable repo with basic config for python, dev container, jupyter, etc

Jupyter Notebook

Languages:

Jupyter Notebook: 6.9KB
Python: 0.1KB
Shell: 0.1KB
Created: 11/29/2024
Updated: 12/12/2024

All Repositories (1)

A forkable repo with basic config for python, dev container, jupyter, etc