diff --git a/src/shieldcommit/config.py b/src/shieldcommit/config.py deleted file mode 100644 index 70a0408..0000000 --- a/src/shieldcommit/config.py +++ /dev/null @@ -1,23 +0,0 @@ -import yaml - -class ShieldCommitConfig: - def __init__(self, config_file): - self.config_file = config_file - self.config_data = self.load_config() - - def load_config(self): - with open(self.config_file, 'r') as file: - return yaml.safe_load(file) - - def get_blocklist_patterns(self): - return self.config_data.get('blocklist', []).copy() - - def get_warning_patterns(self): - return self.config_data.get('warnings', []).copy() - - def get_custom_exclusions(self): - return self.config_data.get('exclusions', []).copy() - - def save_config(self): - with open(self.config_file, 'w') as file: - yaml.dump(self.config_data, file) \ No newline at end of file