From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 475B54582F; Wed, 21 Aug 2024 12:16:56 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E428040E44; Wed, 21 Aug 2024 12:16:55 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 183634003C for ; Wed, 21 Aug 2024 12:16:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1724235414; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6TLYaNWgkkCgLQgwHpQB9sTFP12bNXRfgOx+O2HvVKI=; b=JBR9tGhJgkMd2Vq2EtSwM0Lggt8Nr6Wb5LIauWNX0AEBLftOzommNY4fGllm28rP0Ug4hV 2qnmZqz/4Y6SW52j600b5XQRPxpbvErVUABKi4vSsyZLzDih8SE6e2qfU8D6GDspS4dufi zL+8s4Y57MfckxEDFkGH0or/x+Y0qOM= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-518-nl4mPl8hPrSvG1nCNw2EcQ-1; Wed, 21 Aug 2024 06:16:53 -0400 X-MC-Unique: nl4mPl8hPrSvG1nCNw2EcQ-1 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-371a82ceaa7so2654453f8f.1 for ; Wed, 21 Aug 2024 03:16:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724235412; x=1724840212; h=in-reply-to:references:user-agent:from:cc:subject:to:message-id :date:content-transfer-encoding:mime-version:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=6TLYaNWgkkCgLQgwHpQB9sTFP12bNXRfgOx+O2HvVKI=; b=B1eJ7mY094h7o7jJrgK8FQELz2nmgS0NOXkar+Ogvrh+I09gypPkCjnr5VNjcY/YZ7 Ym2fRBQYxbN7M+B6Tj9H71rL860O3rb84L8jOf5c1WyQiGmLQiYrKqvm1Eunm3oOOaMv cvI0qiwUu3q+/1HuV951gX/nW5WGzHMwiBBpf4t7RTCfJUQdL0tPIbds7NJ0TUfLQ+5I L44vh3QNzfBEIeE3fPx9UEvT/NHTyYHoV8SaGS/cJi/pHmGQYqNm2tB5uDJifL5fJouI 1bxbV9mI7duvCiO4UHIx7oEhE3FtnA1WZhsZStUgUuHOZO4U87CH6NnnXUJGmgwn1Ix6 M22A== X-Forwarded-Encrypted: i=1; AJvYcCWaYtsgCFeJvNJSSe39U3MO/InUGvdIckpSLKWOF22AYEERYFWEW4VwYCBHLslHbWKlKFU=@dpdk.org X-Gm-Message-State: AOJu0Ywu9XuQjLRqYdqxrcP/zCY/GVK8BjuTRxeTHffblrvBlblvnqr1 3NXim3XbjqDAdosYEadXp4HPQbJ8fUcFSSsxqpfzsFMTpgOGMoFk6v+k5JdycSRP1aDhetv6E3K zvwQvV7UcXvjRcavIxAq2sRK9Ec2mHUzCinJ+kLwL X-Received: by 2002:adf:fa09:0:b0:371:8c06:82ea with SMTP id ffacd0b85a97d-372fd576930mr1070081f8f.1.1724235411855; Wed, 21 Aug 2024 03:16:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF6Y99NQzopwnYXpzw0AdelbyQg07xtX55apdfUdsbtHIeZsu5r8aMAv1DW7FldTTEmy1Cxug== X-Received: by 2002:adf:fa09:0:b0:371:8c06:82ea with SMTP id ffacd0b85a97d-372fd576930mr1070064f8f.1.1724235411382; Wed, 21 Aug 2024 03:16:51 -0700 (PDT) Received: from localhost (2a01cb00025433006239e1f47a0b2371.ipv6.abo.wanadoo.fr. [2a01:cb00:254:3300:6239:e1f4:7a0b:2371]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37189857069sm15292327f8f.47.2024.08.21.03.16.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Aug 2024 03:16:51 -0700 (PDT) Mime-Version: 1.0 Date: Wed, 21 Aug 2024 12:16:50 +0200 Message-Id: To: "Anatoly Burakov" , Subject: Re: [PATCH v5 1/4] usertools/cpu_layout: update coding style Cc: From: "Robin Jarry" User-Agent: aerc/0.18.2-53-g11f57b5f3378-dirty References: <6646f59acc5a1d93481a06fe7374453d40aad990.1724233499.git.anatoly.burakov@intel.com> In-Reply-To: <6646f59acc5a1d93481a06fe7374453d40aad990.1724233499.git.anatoly.burakov@intel.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8; format=Flowed X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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 > --- > > Notes: > v4-v5: > - Format with Ruff on default settings > =20 > v3->v4: > - Format with Ruff, line width 79 > =20 > 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 Thanks!