Skip to content

Commit

Permalink
Fix linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Takishima committed Apr 2, 2024
1 parent 57fed69 commit 5f4c51e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

"""Setup.py file."""

# pylint: disable=deprecated-module
# pylint: disable=deprecated-module,attribute-defined-outside-init

import os
import platform
Expand Down Expand Up @@ -324,7 +324,7 @@ def finalize_options(self):
"""Finalize this command's options."""
build_ext.finalize_options(self)
if self.gen_compiledb:
self.dry_run = True # pylint: disable=attribute-defined-outside-init
self.dry_run = True

def run(self):
"""Execute this command."""
Expand Down Expand Up @@ -411,8 +411,6 @@ def _get_compilation_commands(self, ext):
return commands

def _configure_compiler(self):
# pylint: disable=attribute-defined-outside-init

# Force dry_run = False to allow for compiler feature testing
dry_run_old = self.compiler.dry_run
self.compiler.dry_run = False
Expand Down Expand Up @@ -698,7 +696,6 @@ def finalize_options(self):
if self.include_all_extras or name in include_extras:
self.extra_pkgs.extend(pkgs)

# pylint: disable=attribute-defined-outside-init
self.dependencies = self.distribution.install_requires
if not self.dependencies:
self.dependencies = pyproject_toml['project']['dependencies']
Expand Down

0 comments on commit 5f4c51e

Please sign in to comment.