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.bura...@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 <rja...@redhat.com>

Thanks!

Reply via email to