Skip to content

Commit 460c666

Browse files
committed
fix readme
fix line size fix "" to ''
1 parent f13374a commit 460c666

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ First, you install it (you must have
1414
and [Pip](https://pip.pypa.io/en/stable/installing/) installed):
1515

1616
```bash
17-
pip3 install aibolit==
17+
pip3 install aibolit
1818
```
1919

2020
To analyze your Java sources, located at `src/java` (for example), run:

test/config/test_config.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,16 @@ def test_each_metric_in_config_accepts_ast():
1717
assert 'ast' in metric_signature.parameters
1818
ann = metric_signature.parameters['ast'].annotation
1919
assert is_ast_or_subclass(ann), (
20-
f"{metric_config['name']} metric.value 'ast' parameter should be typed as AST or subclass"
20+
f"{metric_config['name']} "
21+
f"metric.value 'ast' parameter should be typed as AST or subclass"
2122
)
2223

2324

2425
def is_ast_or_subclass(ann):
2526
if ann is inspect._empty:
2627
return False
2728
if isinstance(ann, str):
28-
return ann == "AST" or ann.endswith(".AST")
29+
return ann == 'AST' or ann.endswith('.AST')
2930
try:
3031
return issubclass(ann, AST)
3132
except TypeError:

0 commit comments

Comments
 (0)