1
- # pylint: disable=bad-option-value,wrong-import-position
2
1
# We need to disable the import position checks because of the windows check that we need to do below
3
2
import copy
4
3
import logging
@@ -72,7 +71,7 @@ def log_system_info():
72
71
LOG .debug ("DEFAULT_ENCODING: %s" , gitlint .utils .DEFAULT_ENCODING )
73
72
74
73
75
- def build_config ( # pylint: disable=too-many-arguments
74
+ def build_config (
76
75
target ,
77
76
config_path ,
78
77
c ,
@@ -255,7 +254,7 @@ def __init__(self, config, config_builder, commit_hash, refspec, msg_filename, g
255
254
help = f"Config file location [default: { DEFAULT_CONFIG_FILE } ]" )
256
255
@click .option ("-c" , multiple = True ,
257
256
help = "Config flags in format <rule>.<option>=<value> (e.g.: -c T1.line-length=80). " +
258
- "Flag can be used multiple times to set multiple config values." ) # pylint: disable=bad-continuation
257
+ "Flag can be used multiple times to set multiple config values." )
259
258
@click .option ("--commit" , envvar = "GITLINT_COMMIT" , default = None , help = "Hash (SHA) of specific commit to lint." )
260
259
@click .option ("--commits" , envvar = "GITLINT_COMMITS" , default = None ,
261
260
help = "The range of commits (refspec or comma-separated hashes) to lint. [default: HEAD]" )
@@ -281,7 +280,7 @@ def __init__(self, config, config_builder, commit_hash, refspec, msg_filename, g
281
280
@click .option ("-d" , "--debug" , envvar = "GITLINT_DEBUG" , help = "Enable debugging output." , is_flag = True )
282
281
@click .version_option (version = gitlint .__version__ )
283
282
@click .pass_context
284
- def cli ( # pylint: disable=too-many-arguments
283
+ def cli (
285
284
ctx , target , config , c , commit , commits , extra_path , ignore , contrib ,
286
285
msg_filename , ignore_stdin , staged , fail_without_commits , verbose ,
287
286
silent , debug ,
@@ -497,5 +496,4 @@ def generate_config(ctx):
497
496
# Let's Party!
498
497
setup_logging ()
499
498
if __name__ == "__main__" :
500
- # pylint: disable=no-value-for-parameter
501
499
cli () # pragma: no cover
0 commit comments