Skip to content

Commit 562883b

Browse files
committed
docs: add pycodestyle checks
1 parent f7fff79 commit 562883b

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,14 @@ line-length = 100
5555
target-version = "py39"
5656

5757
[tool.ruff.lint]
58-
select = ["E", "F", "I", "S", "UP"]
58+
extend-ignore = ["D107"]
59+
pydocstyle = { convention = "google" }
60+
select = ["D", "E", "F", "I", "S", "UP"]
5961

6062
[tool.ruff.lint.extend-per-file-ignores]
61-
"tests/**/*_test.py" = ["S101"]
63+
"examples/*.py" = ["D"]
64+
"src/linkup/__init__.py" = ["D104"]
65+
"tests/**/*test.py" = ["D", "S101"]
6266

6367
[build-system]
6468
build-backend = "hatchling.build"

src/linkup/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Linkup client, the entrypoint for Linkup functions."""
2+
13
import json
24
import os
35
from datetime import date

src/linkup/errors.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"""Linkup custom errors."""
2+
3+
14
class LinkupInvalidRequestError(Exception):
25
"""Invalid request error, raised when the Linkup API returns a 400 status code.
36

src/linkup/types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"""Input and output types for Linkup functions."""
2+
13
from typing import Any, Literal, Optional, Union
24

35
from pydantic import BaseModel, ConfigDict, Field

0 commit comments

Comments
 (0)