Re: [PATCH v3 3/4] usertools/dpdk-hugepages.py: update coding style

2024-08-21 Thread Robin Jarry
Burakov, Anatoly, Aug 21, 2024 at 11:16: > Actually, I take that back - I had a configuration mishap and didn't > notice that I wasn't using Ruff for formatting on the machine I was > creating the commits. > > Still, cpu_layout's formatting is not affected, but hugepage script is. > > However,

Re: [PATCH v3 3/4] usertools/dpdk-hugepages.py: update coding style

2024-08-21 Thread Burakov, Anatoly
On 8/21/2024 11:06 AM, Burakov, Anatoly wrote: On 8/21/2024 10:52 AM, Burakov, Anatoly wrote: On 8/20/2024 5:57 PM, Robin Jarry wrote: Anatoly Burakov, Aug 20, 2024 at 17:35: Update coding style: - Make the code PEP-484 compliant - Add more comments, improve readability, use f-strings everywh

Re: [PATCH v3 3/4] usertools/dpdk-hugepages.py: update coding style

2024-08-21 Thread Burakov, Anatoly
On 8/21/2024 10:52 AM, Burakov, Anatoly wrote: On 8/20/2024 5:57 PM, Robin Jarry wrote: Anatoly Burakov, Aug 20, 2024 at 17:35: Update coding style: - Make the code PEP-484 compliant - Add more comments, improve readability, use f-strings everywhere - Use quotes consistently - Address all Pyth

Re: [PATCH v3 3/4] usertools/dpdk-hugepages.py: update coding style

2024-08-21 Thread Burakov, Anatoly
On 8/20/2024 5:52 PM, Stephen Hemminger wrote: On Tue, 20 Aug 2024 16:35:16 +0100 Anatoly Burakov wrote: Update coding style: - Make the code PEP-484 compliant - Add more comments, improve readability, use f-strings everywhere - Use quotes consistently - Address all Python static analysis (e.

Re: [PATCH v3 3/4] usertools/dpdk-hugepages.py: update coding style

2024-08-21 Thread Burakov, Anatoly
On 8/20/2024 5:57 PM, Robin Jarry wrote: Anatoly Burakov, Aug 20, 2024 at 17:35: Update coding style: - Make the code PEP-484 compliant - Add more comments, improve readability, use f-strings everywhere - Use quotes consistently - Address all Python static analysis (e.g. mypy, pylint) warnings

Re: [PATCH v3 3/4] usertools/dpdk-hugepages.py: update coding style

2024-08-20 Thread Robin Jarry
Anatoly Burakov, Aug 20, 2024 at 17:35: Update coding style: - Make the code PEP-484 compliant - Add more comments, improve readability, use f-strings everywhere - Use quotes consistently - Address all Python static analysis (e.g. mypy, pylint) warnings - Improve error handling - Refactor printi

Re: [PATCH v3 3/4] usertools/dpdk-hugepages.py: update coding style

2024-08-20 Thread Stephen Hemminger
On Tue, 20 Aug 2024 16:35:16 +0100 Anatoly Burakov wrote: > Update coding style: > > - Make the code PEP-484 compliant > - Add more comments, improve readability, use f-strings everywhere > - Use quotes consistently > - Address all Python static analysis (e.g. mypy, pylint) warnings > - Improve

[PATCH v3 3/4] usertools/dpdk-hugepages.py: update coding style

2024-08-20 Thread Anatoly Burakov
Update coding style: - Make the code PEP-484 compliant - Add more comments, improve readability, use f-strings everywhere - Use quotes consistently - Address all Python static analysis (e.g. mypy, pylint) warnings - Improve error handling - Refactor printing and sysfs/procfs access functions - Sor