mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-29 22:22:55 +08:00
rename to deprecated
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Specifies that Alembic should be used for managing database migrations, ensuring controlled schema evolution.
|
||||
globs: **/migrations/**/*.*
|
||||
---
|
||||
- Use alembic for database migrations.
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
---
|
||||
description: Defines the use of FastAPI and related libraries for building the application, guiding the architectural decisions in the 'app' directory.
|
||||
globs: **/app/**/*.*
|
||||
---
|
||||
- Always use python 3.12
|
||||
- Use FastAPI for building APIs.
|
||||
- Frameworks:
|
||||
- pydantic
|
||||
- fastapi
|
||||
- sqlalchemy
|
||||
- You use fastapi-users for user management
|
||||
- You use fastapi-jwt-auth for authentication
|
||||
- You use fastapi-mail for email sending
|
||||
- You use fastapi-cache for caching
|
||||
- You use fastapi-limiter for rate limiting
|
||||
- You use fastapi-pagination for pagination
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
---
|
||||
description: Ensures the project uses Poetry for managing dependencies, promoting consistent and reproducible builds.
|
||||
globs: **/pyproject.toml
|
||||
---
|
||||
- Use poetry for dependency management.
|
||||
- Use UV when installing depdendencies.
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
---
|
||||
description: Applies general Python coding best practices across all Python files in the project, focusing on code clarity, style, and maintainability.
|
||||
globs: **/*.py
|
||||
---
|
||||
- Follow PEP 8 style guide for formatting.
|
||||
- Use docstrings to document functions and classes.
|
||||
- Write simple and clear code; avoid unnecessary complexity.
|
||||
- Prefer list comprehensions for creating lists when appropriate.
|
||||
- Use try-except blocks to handle exceptions gracefully.
|
||||
- Utilize type hints for better code clarity and type checking.
|
||||
- Limit the use of global variables to reduce side effects.
|
||||
- Choose descriptive variable, function, and class names.
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Enforces the implementation of unit tests to guarantee code reliability and maintainability, especially within the 'tests' directory.
|
||||
globs: **/tests/**/*.*
|
||||
---
|
||||
- Implement unit tests to ensure code reliability.
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Mandates the use of virtual environments for isolating project dependencies and ensuring reproducibility.
|
||||
globs: **/*
|
||||
---
|
||||
- Isolate project dependencies using virtual environments (e.g., `venv`).
|
||||
Reference in New Issue
Block a user