Skip to content

Commit

Permalink
chore: Replace darglint with Ruff's implementation of pydoclint
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Aug 5, 2024
1 parent 278fde4 commit 826de72
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 34 deletions.
10 changes: 0 additions & 10 deletions .flake8

This file was deleted.

12 changes: 0 additions & 12 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,6 @@ repos:
cookiecutter/.*
)$
- repo: https://github.com/pycqa/flake8
rev: 7.1.1
hooks:
- id: flake8
additional_dependencies:
- darglint==1.8.1
files: |
(?x)^(
singer_sdk/.*|
samples/.*
)$
- repo: https://github.com/python-poetry/poetry
rev: 1.8.0
hooks:
Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ select = [
"E", # pycodestyle (error)
"W", # pycodestyle (warning)
"C90", # mccabe
"DOC", # pydocstyle
"I", # isort
"N", # pep8-naming
"D", # pydocstyle/flake8-docstrings
Expand Down Expand Up @@ -373,6 +374,7 @@ unfixable = [
"ANN",
"D1",
"D2",
"DOC",
"FBT001",
"FBT003",
"PLR2004",
Expand All @@ -381,8 +383,10 @@ unfixable = [
"PLC2701", # Allow usage of private members in tests
"PLR6301", # Don't suggest making test methods static, etc.
]
# Disabled some checks in helper modules
"singer_sdk/helpers/_*.py" = ["DOC"]
# Disabled some checks in samples code
"samples/*" = ["ANN", "D"]
"samples/*" = ["ANN", "D", "DOC"]
# Templates support a generic resource of type Any.
"singer_sdk/testing/*.py" = ["S101"]
"singer_sdk/testing/templates.py" = ["ANN401"]
Expand Down
8 changes: 0 additions & 8 deletions singer_sdk/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,6 @@ def get_next(self, response: Response) -> TPageToken | None:
Args:
response: API response object.
Returns:
The next page token or index. Return `None` from this method to indicate
the end of pagination.
"""
...

Expand All @@ -160,10 +156,6 @@ def get_next(self, response: Response) -> None: # noqa: ARG002, PLR6301
Args:
response: API response object.
Returns:
The next page token or index. Return `None` from this method to indicate
the end of pagination.
"""
return

Expand Down
3 changes: 0 additions & 3 deletions singer_sdk/streams/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,6 @@ def _write_replication_key_signpost(
Args:
context: Stream partition or context dictionary.
value: TODO
Returns:
TODO
"""
if not value:
return
Expand Down

0 comments on commit 826de72

Please sign in to comment.