From f4a159fdb3859150bb61dfbf6ad9d14f01846189 Mon Sep 17 00:00:00 2001 From: Matteo Rosati Date: Sun, 28 Dec 2025 14:18:39 +0100 Subject: [PATCH] update python rule --- python.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python.md b/python.md index f86d16f..1670276 100644 --- a/python.md +++ b/python.md @@ -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. - **ALWAYS**: Use `logging` module for logging. - **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 `). +- **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.