From 687aa639215c5e8276c78bb6d8d56510f19bdacf Mon Sep 17 00:00:00 2001 From: Hans Trompert Date: Tue, 26 Mar 2024 14:50:03 +0100 Subject: [PATCH] fix even more various linting errors --- setup.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 49b2ce14..a946f7f2 100644 --- a/setup.py +++ b/setup.py @@ -1,8 +1,9 @@ """Distutils/setuptools packaging information file.""" + import operator import shutil import sys -from distutils.command.clean import clean # type: ignore +from distutils.command.clean import clean from fileinput import FileInput from pathlib import Path from typing import List, Optional, Tuple @@ -123,7 +124,7 @@ def run(self) -> None: # noqa: D102 class DevelopCommand(develop): """Support Python code generation during 'editable' package installation.""" - def run(self) -> None: # noqa: D102 + def run(self) -> None: # type: ignore[override] # noqa: D102 self.run_command("gen_code") super().run() @@ -142,5 +143,10 @@ def run(self) -> None: # noqa: D102 # to generate Python code from protobuf/gRPC definitions during installation. setuptools.setup( name="supa", - cmdclass={"gen_code": GenCode, "install": InstallCommand, "develop": DevelopCommand, "clean": CleanCommand}, + cmdclass={ + "gen_code": GenCode, + "install": InstallCommand, + "develop": DevelopCommand, + "clean": CleanCommand, # type: ignore[dict-item] + }, )