Skip to content

Commit

Permalink
fix even more various linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hanstrompert committed Mar 26, 2024
1 parent 9815f06 commit 687aa63
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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()

Expand All @@ -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]
},
)

0 comments on commit 687aa63

Please sign in to comment.