diff options
author | Tausif Rahman <tausif.rahman@mongodb.com> | 2022-05-24 22:55:22 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-05-25 17:40:16 +0000 |
commit | 9ea1d6f0419938770eea612479c75838f75752b7 (patch) | |
tree | 26b57fa102878dba3251b40f7ddf9c50ab8b275a /src/mongo/client | |
parent | 3ad805fea14b2f1d5c5a367f6ec05ece93502f32 (diff) | |
download | mongo-9ea1d6f0419938770eea612479c75838f75752b7.tar.gz |
SERVER-66490 Apply pylinters to build system code
Diffstat (limited to 'src/mongo/client')
-rw-r--r-- | src/mongo/client/SConscript | 25 | ||||
-rw-r--r-- | src/mongo/client/sdam/SConscript | 28 |
2 files changed, 24 insertions, 29 deletions
diff --git a/src/mongo/client/SConscript b/src/mongo/client/SConscript index 5010be181f0..1e613f942a0 100644 --- a/src/mongo/client/SConscript +++ b/src/mongo/client/SConscript @@ -8,7 +8,7 @@ env = env.Clone() env.SConscript( dirs=['sdam'], - exports=['env'] + exports=['env'], ) # Contains only the core ConnectionString functionality, *not* the ability to call connect() and @@ -38,11 +38,10 @@ env.Library( ], LIBDEPS=[ '$BUILD_DIR/mongo/bson/util/bson_extract', - '$BUILD_DIR/mongo/db/service_context' + '$BUILD_DIR/mongo/db/service_context', ], ) - if get_option('ssl') == 'on': env.Library( target=[ @@ -53,7 +52,7 @@ if get_option('ssl') == 'on': ], LIBDEPS_PRIVATE=[ '$BUILD_DIR/mongo/base', - '$BUILD_DIR/mongo/db/server_options_core', # For object_check.h + '$BUILD_DIR/mongo/db/server_options_core', # For object_check.h '$BUILD_DIR/mongo/idl/idl_parser', ], ) @@ -72,7 +71,7 @@ if get_option('ssl') == 'on': ], LIBDEPS_PRIVATE=[ '$BUILD_DIR/mongo/base', - '$BUILD_DIR/mongo/db/server_options_core', # For object_check.h + '$BUILD_DIR/mongo/db/server_options_core', # For object_check.h '$BUILD_DIR/mongo/idl/idl_parser', '$BUILD_DIR/third_party/shim_kms_message', 'sasl_aws_common', @@ -143,7 +142,7 @@ env.Library( '$BUILD_DIR/mongo/bson/util/bson_extract', '$BUILD_DIR/mongo/executor/remote_command', 'internal_auth', - 'sasl_client' + 'sasl_client', ], LIBDEPS_PRIVATE=[ '$BUILD_DIR/mongo/db/auth/auth', @@ -247,7 +246,7 @@ clientDriverEnv.Library( '$BUILD_DIR/mongo/db/commands/test_commands_enabled', '$BUILD_DIR/mongo/transport/message_compressor', '$BUILD_DIR/mongo/util/net/ssl_manager', - ] + ], ) env.Library( @@ -258,7 +257,7 @@ env.Library( ], LIBDEPS_PRIVATE=[ '$BUILD_DIR/mongo/idl/server_parameter', - ] + ], ) env.Library( @@ -370,7 +369,7 @@ if wiredtiger: 'server_discovery_monitor_test.cpp', 'server_ping_monitor_test.cpp', 'streamable_replica_set_monitor_error_handler_test.cpp', - 'streamable_replica_set_monitor_discovery_time_processor_test.cpp' + 'streamable_replica_set_monitor_discovery_time_processor_test.cpp', ], LIBDEPS=[ '$BUILD_DIR/mongo/client/sdam/sdam', @@ -467,10 +466,6 @@ env.CppIntegrationTest( env.Library( target='dbclient_mockcursor', - source=[ - 'dbclient_mockcursor.cpp' - ], - LIBDEPS_PRIVATE=[ - 'clientdriver_minimal' - ], + source=['dbclient_mockcursor.cpp'], + LIBDEPS_PRIVATE=['clientdriver_minimal'], ) diff --git a/src/mongo/client/sdam/SConscript b/src/mongo/client/sdam/SConscript index 0b065b6b52a..4563eba4f2a 100644 --- a/src/mongo/client/sdam/SConscript +++ b/src/mongo/client/sdam/SConscript @@ -12,20 +12,20 @@ env.Library( LIBDEPS_PRIVATE=[ '$BUILD_DIR/mongo/db/server_options_core', '$BUILD_DIR/mongo/idl/server_parameter', - ] + ], ) env.Library( target='sdam', source=[ - 'sdam_configuration.cpp', + 'sdam_configuration.cpp', 'sdam_datatypes.cpp', 'server_description.cpp', 'topology_description.cpp', - 'topology_listener.cpp', + 'topology_listener.cpp', 'topology_state_machine.cpp', 'topology_manager.cpp', - 'server_selector.cpp', + 'server_selector.cpp', ], LIBDEPS=[ '$BUILD_DIR/mongo/base', @@ -39,11 +39,11 @@ env.Library( ], ) - sdam_json_test = env.Program( target='sdam_json_test', source=[ - 'sdam_json_test_runner.cpp'], + 'sdam_json_test_runner.cpp', + ], AIB_COMPONENT="sdam-json-test", LIBDEPS=[ '$BUILD_DIR/mongo/client/connection_string', @@ -53,13 +53,13 @@ sdam_json_test = env.Program( 'sdam_configuration_parameters', 'sdam_test', ], - )[0] server_selection_json_test = env.Program( target='server_selection_json_test', source=[ - 'server_selection_json_test_runner.cpp'], + 'server_selection_json_test_runner.cpp', + ], AIB_COMPONENT="server-selection-json-test", LIBDEPS=[ '$BUILD_DIR/mongo/client/connection_string', @@ -129,12 +129,12 @@ env.CppUnitTest( ) env.CppUnitTest( - target='server_selector_test', - source=['server_selector_test.cpp'], - LIBDEPS=[ - 'sdam', - 'sdam_test', - ], + target='server_selector_test', + source=['server_selector_test.cpp'], + LIBDEPS=[ + 'sdam', + 'sdam_test', + ], ) env.CppUnitTest( |