Skip to content

Commit a2cf678

Browse files
authored
Fix handling of level from pyproject.toml
When the "level" is specified via pyproject.toml the value wasn't properly converted from str to the enum type. The is-comparisons with the enum values during processing then didn't work.
1 parent 1750d59 commit a2cf678

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

liccheck/command_line.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def merge_args(args):
343343
return {
344344
'strategy_ini_file': config.get('strategy_ini_file', args['strategy_ini_file']),
345345
'requirement_txt_file': config.get('requirement_txt_file', args['requirement_txt_file']),
346-
'level': config.get('level', args['level']),
346+
'level': Level.starting(config.get('level', args['level'].value)),
347347
'reporting_txt_file': config.get('reporting_txt_file', args['reporting_txt_file']),
348348
'no_deps': config.get('no_deps', args['no_deps']),
349349
'dependencies': config.get('dependencies', args['dependencies']),

0 commit comments

Comments
 (0)