Skip to content

Commit 6fb39b2

Browse files
committed
update readme
1 parent 6fc8aa4 commit 6fb39b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ pip install ruff-format
1515
## Usage
1616

1717
```python
18-
from ruff_format import format_string
18+
from ruff_format import format_string, is_valid_syntax
1919

2020
code = """
2121
def hello( x,y, z ):
2222
print( x+y+z )
2323
"""
2424

25+
assert is_valid_syntax(code)
26+
2527
formatted = format_string(code)
2628
print(formatted)
2729
```

0 commit comments

Comments
 (0)