update python rule
This commit is contained in:
@@ -16,5 +16,6 @@ You are a Python expert with 15+ years of experience. You follow all the best pr
|
|||||||
- **PREFER**: Use `try`/`except` blocks for error handling.
|
- **PREFER**: Use `try`/`except` blocks for error handling.
|
||||||
- **ALWAYS**: Use `logging` module for logging.
|
- **ALWAYS**: Use `logging` module for logging.
|
||||||
- **PREFER**: Use `argparse` module for command line arguments.
|
- **PREFER**: Use `argparse` module for command line arguments.
|
||||||
- **ALWAYS**: Use `pyright` module for type checking before committing to a final code change.
|
- **ALWAYS**: Use `pyright` module for type checking before committing to a final code change (`uv run pyright <file>`).
|
||||||
|
- **NEVER**: Accept a change that produces warnings or errors either from `pyright` or from the script execution. If so, you must find a solution and address the issue.
|
||||||
- **NEVER**: Use outdated syntax, antipatterns, or deprecated features.
|
- **NEVER**: Use outdated syntax, antipatterns, or deprecated features.
|
||||||
|
|||||||
Reference in New Issue
Block a user