Commit 2ae924e8 authored by Antoine Augusti's avatar Antoine Augusti

Pass options to Inspector's init

parent cc6f7a8b
......@@ -339,11 +339,21 @@ def validate(source, schema, with_repair=True, **options):
if custom_checks_config:
for custom_check_conf in custom_checks_config:
checks.append({custom_check_conf['name']: custom_check_conf['params']})
inspector = goodtables.Inspector(
skip_checks=['non-matching-header', 'extra-header', 'missing-header'],
inspector_options_keys = [
'checks', 'skip_checks', 'infer_schema',
'infer_fields', 'order_fields', 'error_limit',
'table_limit', 'row_limit',
inspector_options = {
'checks': checks,
'skip_checks': ['non-matching-header', 'extra-header', 'missing-header'],
'row_limit': VALIDATA_MAX_ROWS,
**{k: v for k, v in options.items() if k in inspector_options_keys}
inspector = goodtables.Inspector(**inspector_options)
options = {**base_options}
if with_repair:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment