Skip to content

Commit

Permalink
Exclude unknown vars from settings
Browse files Browse the repository at this point in the history
  • Loading branch information
tcarmet committed Jul 19, 2023
1 parent 79084da commit 1458b01
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bert_e/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
import logging
import os
from marshmallow import (
Schema, fields, post_load, pre_load, validates_schema, ValidationError)
Schema, fields, post_load, pre_load, validates_schema, ValidationError,
EXCLUDE)

from bert_e.exceptions import (IncorrectSettingsFile,
SettingsFileNotFound,
Expand Down Expand Up @@ -122,6 +123,9 @@ def deserialize(self, value, attr=None, data=None, **kwargs):


class SettingsSchema(Schema):
class Meta:
unknown = EXCLUDE

# Settings defined in config files
always_create_integration_pull_requests = fields.Bool(
required=False, load_default=True)
Expand Down

0 comments on commit 1458b01

Please sign in to comment.