File tree Expand file tree Collapse file tree 3 files changed +7
-19
lines changed Expand file tree Collapse file tree 3 files changed +7
-19
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ version_file = "src/posit/_version.py"
3434
3535[tool .ruff .format ]
3636docstring-code-format = true
37- docstring-code-line-length = 20
37+ docstring-code-line-length = " dynamic "
3838
3939[tool .ruff .lint ]
4040select = [" D" ]
Original file line number Diff line number Diff line change @@ -31,14 +31,10 @@ def create(url: str) -> Url:
3131
3232 Examples
3333 --------
34- >>> urls.create(
35- ... "http://example.com"
36- ... )
34+ >>> urls.create("http://example.com")
3735 http://example.com/__api__
3836
39- >>> urls.create(
40- ... "http://example.com/__api__"
41- ... )
37+ >>> urls.create("http://example.com/__api__")
4238 http://example.com/__api__
4339
4440 """
@@ -77,12 +73,8 @@ def append(url: Url, path: str) -> Url:
7773
7874 Examples
7975 --------
80- >>> url = urls.create(
81- ... "http://example.com/__api__"
82- ... )
83- >>> urls.append(
84- ... url, "path"
85- ... )
76+ >>> url = urls.create("http://example.com/__api__")
77+ >>> urls.append(url, "path")
8678 http://example.com/__api__/path
8779 """
8880 # Removes leading '/' from path to avoid double slashes.
Original file line number Diff line number Diff line change @@ -25,11 +25,7 @@ def load_mock(path: str) -> dict:
2525
2626 Examples
2727 --------
28- >>> data = load_mock(
29- ... "v1/example.json"
30- ... )
31- >>> data = load_mock(
32- ... "v1/example.jsonc"
33- ... )
28+ >>> data = load_mock("v1/example.json")
29+ >>> data = load_mock("v1/example.jsonc")
3430 """
3531 return json .loads ((Path (__file__ ).parent / "__api__" / path ).read_text ())
You can’t perform that action at this time.
0 commit comments