From cd96f17f874d69f79b487dbf6c84257e44be9043 Mon Sep 17 00:00:00 2001 From: Kienan Stewart Date: Mon, 12 Feb 2024 16:00:42 -0500 Subject: [PATCH] docs: coding style: Add usage of black for formatting python code MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I73131b9cae9de05be0e85d197edb1976b762402e Signed-off-by: Kienan Stewart Signed-off-by: Jérémie Galarneau --- CodingStyle.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CodingStyle.md b/CodingStyle.md index 3074ea883..b1f5be1dd 100644 --- a/CodingStyle.md +++ b/CodingStyle.md @@ -263,6 +263,10 @@ Here are a couple of reminders: * Accept a by-value parameter and move it (when it's moveable) when you intend to copy it anyway. You can do this with most STL containers. +## Python + +Python code should be formatted using [black](https://github.com/psf/black). + ## C Style (historical) The coding style used for this project follows the the Linux kernel guide lines, except that brackets `{`, `}` should typically be used even for single-line if/else statements. Please refer to: -- 2.34.1