[PATCH v5 1/4] usertools/cpu_layout: update coding style
Robin Jarry
rjarry at redhat.com
Wed Aug 21 12:16:50 CEST 2024
Anatoly Burakov, Aug 21, 2024 at 11:44:
> Update coding style:
>
> - make it PEP-484 compliant
> - format code with Ruff
> - address all mypy etc. warnings
> - use f-strings in place of old-style string interpolation
> - refactor printing to make the code more readable
> - read valid CPU ID's from "online" sysfs node
>
> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> ---
>
> Notes:
> v4-v5:
> - Format with Ruff on default settings
>
> v3->v4:
> - Format with Ruff, line width 79
>
> v1,v2 -> v3:
> - Import typing as T instead of individual types
>
> usertools/cpu_layout.py | 161 ++++++++++++++++++++++++++--------------
> 1 file changed, 106 insertions(+), 55 deletions(-)
Acked-by: Robin Jarry <rjarry at redhat.com>
Thanks!
More information about the dev
mailing list