summaryrefslogtreecommitdiff
path: root/site_scons/site_tools
diff options
context:
space:
mode:
authorAlexander Neben <alexander.neben@mongodb.com>2022-09-02 21:56:05 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-09-02 22:55:09 +0000
commit97ac02fa506b4a9e7e0729b9c492bc4ace79499c (patch)
tree975a4d92d9a33f3eb49920daf4ffe8deba3f84b7 /site_scons/site_tools
parentd4d4a26801f7b3033cd6103b6a317cc547ee142c (diff)
downloadmongo-97ac02fa506b4a9e7e0729b9c492bc4ace79499c.tar.gz
SERVER-68593 Disable low value python warnings
Diffstat (limited to 'site_scons/site_tools')
-rw-r--r--site_scons/site_tools/auto_install_binaries.py2
-rw-r--r--site_scons/site_tools/ninja.py6
2 files changed, 2 insertions, 6 deletions
diff --git a/site_scons/site_tools/auto_install_binaries.py b/site_scons/site_tools/auto_install_binaries.py
index 55488465d0e..7ec9810e2d2 100644
--- a/site_scons/site_tools/auto_install_binaries.py
+++ b/site_scons/site_tools/auto_install_binaries.py
@@ -564,7 +564,7 @@ def exists(_env):
return True
-def generate(env): # pylint: disable=too-many-statements
+def generate(env):
"""Generate the auto install builders."""
env["AUTO_INSTALL_ENABLED"] = True
diff --git a/site_scons/site_tools/ninja.py b/site_scons/site_tools/ninja.py
index 82bd1b86262..a55205fc612 100644
--- a/site_scons/site_tools/ninja.py
+++ b/site_scons/site_tools/ninja.py
@@ -287,7 +287,6 @@ class SConsToNinjaTranslator:
self.loaded_custom = False
- # pylint: disable=too-many-return-statements
def action_to_ninja_build(self, node, action=None):
"""Generate build arguments dictionary for node."""
if not self.loaded_custom:
@@ -369,7 +368,6 @@ class SConsToNinjaTranslator:
" you can write your own ninja build generator for"
" this function using NinjaRegisterFunctionHandler".format(name))
- # pylint: disable=too-many-branches
def handle_list_action(self, node, action):
"""TODO write this comment"""
results = [
@@ -443,7 +441,6 @@ class SConsToNinjaTranslator:
raise Exception("Unhandled list action with rule: " + results[0]["rule"])
-# pylint: disable=too-many-instance-attributes
class NinjaState:
"""Maintains state of Ninja build system as it's translated from SCons."""
@@ -653,7 +650,6 @@ class NinjaState:
return True
return False
- # pylint: disable=too-many-branches,too-many-locals
def generate(self, ninja_file):
"""
Generate the build.ninja.
@@ -1210,7 +1206,7 @@ def get_generic_shell_command(env, node, action, targets, sources, executor=None
)
-def get_command(env, node, action): # pylint: disable=too-many-branches
+def get_command(env, node, action):
"""Get the command to execute for node."""
if node.env:
sub_env = node.env