We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fc8aa4 commit 6fb39b2Copy full SHA for 6fb39b2
1 file changed
README.md
@@ -15,13 +15,15 @@ pip install ruff-format
15
## Usage
16
17
```python
18
-from ruff_format import format_string
+from ruff_format import format_string, is_valid_syntax
19
20
code = """
21
def hello( x,y, z ):
22
print( x+y+z )
23
"""
24
25
+assert is_valid_syntax(code)
26
+
27
formatted = format_string(code)
28
print(formatted)
29
```
0 commit comments