diff options
| author | 2025-03-15 16:35:39 +0800 | |
|---|---|---|
| committer | 2025-03-15 16:35:39 +0800 | |
| commit | 965771fb0d85ddb27dc6c5dd7df822d1fb318286 (patch) | |
| tree | f33a0d36e5716da13be0e3a4134cf7359ebe5223 /src/conventionalrp/extractors/rule_extractor.py | |
| parent | 818d84a7bf00c07b7ab252dda5bfa70a98b8be65 (diff) | |
| download | conventional_role_play-965771fb0d85ddb27dc6c5dd7df822d1fb318286.tar.gz conventional_role_play-965771fb0d85ddb27dc6c5dd7df822d1fb318286.zip | |
refactor: clean up code formatting and add new PluginManager class
Diffstat (limited to 'src/conventionalrp/extractors/rule_extractor.py')
| -rw-r--r-- | src/conventionalrp/extractors/rule_extractor.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/conventionalrp/extractors/rule_extractor.py b/src/conventionalrp/extractors/rule_extractor.py index 78e8505..b0d03d5 100644 --- a/src/conventionalrp/extractors/rule_extractor.py +++ b/src/conventionalrp/extractors/rule_extractor.py @@ -13,7 +13,8 @@ class RuleExtractor(BaseExtractor): def load_rules_from_file(self): import json - with open(self.config_file, 'r') as file: + + with open(self.config_file, "r") as file: return json.load(file) def extract(self): @@ -21,4 +22,4 @@ class RuleExtractor(BaseExtractor): extracted_rules = [] for rule in self.rules: extracted_rules.append(rule) # Placeholder for actual extraction logic - return extracted_rules
\ No newline at end of file + return extracted_rules |
