Skip to content

Commit b2a06bb

Browse files
fix(pre_commit): 🎨 auto format pre-commit hooks
1 parent 8d3cfe4 commit b2a06bb

3 files changed

Lines changed: 14 additions & 8 deletions

File tree

‎CONTRIBUTING.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,15 @@ The CLI is built on [typer](https://typer.tiangolo.com/). Each command group is
8484

8585
```python
8686
"""My command description."""
87+
8788
from __future__ import annotations
8889
from typing import Annotated, Optional
8990
import typer
9091
from roboflow.cli._compat import ctx_to_args
9192

9293
mycommand_app = typer.Typer(help="Do something", no_args_is_help=True)
9394

95+
9496
@mycommand_app.command("list")
9597
def list_things(
9698
ctx: typer.Context,
@@ -100,6 +102,7 @@ def list_things(
100102
args = ctx_to_args(ctx, project=project)
101103
_list(args)
102104

105+
103106
def _list(args) -> None:
104107
from roboflow.cli._output import output, output_error, suppress_sdk_output
105108

@@ -117,6 +120,7 @@ def _list(args) -> None:
117120
2. Register in `roboflow/cli/__init__.py`:
118121
```python
119122
from roboflow.cli.handlers.mycommand import mycommand_app
123+
120124
app.add_typer(mycommand_app, name="mycommand")
121125
```
122126

‎README.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ To use the Roboflow Python package, you first need to authenticate with your Rob
9393

9494
```python
9595
import roboflow
96+
9697
roboflow.login()
9798
```
9899

@@ -164,10 +165,10 @@ workspace = rf.workspace()
164165

165166
# Export images matching a search query
166167
workspace.search_export(
167-
query="class:person", # search query (e.g. "tag:review", "class:dog", "*")
168-
format="coco", # annotation format: coco, yolov8, yolov5, voc, etc.
169-
dataset="my-project", # optional: limit to a specific project
170-
location="./my-export", # optional: output directory
168+
query="class:person", # search query (e.g. "tag:review", "class:dog", "*")
169+
format="coco", # annotation format: coco, yolov8, yolov5, voc, etc.
170+
dataset="my-project", # optional: limit to a specific project
171+
location="./my-export", # optional: output directory
171172
)
172173
```
173174

‎docs/index.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ To use the Roboflow Python package, you first need to authenticate with your Rob
4343

4444
```python
4545
import roboflow
46+
4647
roboflow.login()
4748
```
4849

@@ -113,10 +114,10 @@ workspace = rf.workspace()
113114

114115
# Export images matching a search query
115116
workspace.search_export(
116-
query="class:person", # search query (e.g. "tag:review", "class:dog", "*")
117-
format="coco", # annotation format: coco, yolov8, yolov5, voc, etc.
118-
dataset="my-project", # optional: limit to a specific project
119-
location="./my-export", # optional: output directory
117+
query="class:person", # search query (e.g. "tag:review", "class:dog", "*")
118+
format="coco", # annotation format: coco, yolov8, yolov5, voc, etc.
119+
dataset="my-project", # optional: limit to a specific project
120+
location="./my-export", # optional: output directory
120121
)
121122
```
122123

0 commit comments

Comments
 (0)