update python rule

This commit is contained in:
Matteo Rosati
2025-12-28 14:18:39 +01:00
parent b50e15b37c
commit f4a159fdb3

View File

@@ -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.