[PATCH v1 1/2] usertools/cpu_layout: update coding style
Stephen Hemminger
stephen at networkplumber.org
Mon Aug 19 17:13:01 CEST 2024
On Mon, 19 Aug 2024 11:36:44 +0200
"Burakov, Anatoly" <anatoly.burakov at intel.com> wrote:
> On 8/19/2024 11:26 AM, Robin Jarry wrote:
> > Anatoly Burakov, Aug 14, 2024 at 13:19:
> >> Update coding style:
> >>
> >> - make it PEP-484 compliant
> >> - address all flake8, mypy etc. warnings
> >> - use f-strings in place of old-style string interpolation
> >> - refactor printing to make the code more readable
> >>
> >> Signed-off-by: Anatoly Burakov <anatoly.burakov at intel.com>
> >> ---
> >
> > Hi Anatoly,
> >
> > thanks for the patch. Did you format the code using black/ruff? I'd like
> > to start keeping python code formatting consistent across user tools.
>
> I don't think I did any formatting with a specific tool. Rather, my IDE
> had flake8 set up to give me warnings if there are issues with
> formatting, and it also does formatting, so this would effectively be
> the same thing.
I tend to use yapf3
More information about the dev
mailing list