We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be4499d commit 0a3146cCopy full SHA for 0a3146c
1 file changed
test/config/test_config.py
@@ -7,16 +7,6 @@
7
8
9
def test_each_metric_in_config_accepts_ast():
10
- '''
11
- TODO #813:30min/DEV Ensure All Metrics Accept `ast: AST` Parameter with Type Hints
12
- Verify that all metrics in the config accept an AST parameter with proper type hints.
13
- Probable solutions:
14
- 1. Every metric factory in patterns_config["metrics"] produces a metric with:
15
- - A parameter named "ast" in its call signature
16
- - The "ast" parameter properly annotated as `aibolit.ast_framework.ast.AST` or a subclass
17
- 2. Remove any metrics that cannot comply with this interface.
18
- Once all metrics meet requirements, remove the decorator.
19
20
patterns_config = Config.get_patterns_config()
21
excluded_metric_codes = set(patterns_config['metrics_exclude'])
22
ast_compatible_metrics = [
0 commit comments