From 395771a93904389832e0079531f53db90fdd1ac6 Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Tue, 1 Jul 2025 14:36:37 +0200 Subject: [PATCH] =?UTF-8?q?refactor(guidelines):=20=E2=9C=A8=20Update=20co?= =?UTF-8?q?ding=20standards=20for=20type=20annotations=20and=20add=20PEP?= =?UTF-8?q?=20references?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Clarified type annotations usage for function parameters, return types, and variables. * Added guidelines for using blank lines, coroutines, and string interpolation as per PEP standards. --- .github/copilot-instructions.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 472850f..c890c0c 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -19,8 +19,12 @@ applyTo: "**/*.py" ## Coding Guidelines -- Use type annotations for function parameters, return types and variables. +- Use type annotations / hints for function and method parameters, return types and variables. Follow PEP 484. - Use newest coding style which is supported by the used Python version. +- Use blank lines to keep code organized and readable. +- Follow PEP 492 – Coroutines with async and await syntax +- Follow PEP 498 – Literal String Interpolation +- Follow PEP 572 – Assignment Expressions ## Code Documentation