Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: pre-commit autoupdate #19

Merged
merged 2 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
- id: codespell
entry: codespell -I .codespell-ignore-words.txt
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.33.0
rev: v1.35.1
hooks:
- id: yamllint
- repo: https://github.com/rstcheck/rstcheck
Expand All @@ -34,11 +34,11 @@ repos:
additional_dependencies:
- tomli
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.2.0
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.11
rev: v0.2.2
hooks:
- id: ruff
args:
Expand Down
24 changes: 8 additions & 16 deletions src/simple_github/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,36 +46,28 @@ def __init__(self, auth: "Auth"):
] = None

@abstractmethod
def close(self) -> BaseNone:
...
def close(self) -> BaseNone: ...

@abstractmethod
def request(self, method: str, query: str, **kwargs: Any) -> BaseResponse:
...
def request(self, method: str, query: str, **kwargs: Any) -> BaseResponse: ...

@abstractmethod
def get(self, query: str) -> BaseResponse:
...
def get(self, query: str) -> BaseResponse: ...

@abstractmethod
def post(self, query: str, data: RequestData = None) -> BaseResponse:
...
def post(self, query: str, data: RequestData = None) -> BaseResponse: ...

@abstractmethod
def put(self, query: str, data: RequestData = None) -> BaseResponse:
...
def put(self, query: str, data: RequestData = None) -> BaseResponse: ...

@abstractmethod
def patch(self, query: str, data: RequestData = None) -> BaseResponse:
...
def patch(self, query: str, data: RequestData = None) -> BaseResponse: ...

@abstractmethod
def delete(self, query: str, data: RequestData = None) -> BaseNone:
...
def delete(self, query: str, data: RequestData = None) -> BaseNone: ...

@abstractmethod
def execute(self, query: str, variables: RequestData = None) -> BaseDict:
...
def execute(self, query: str, variables: RequestData = None) -> BaseDict: ...


class SyncClient(Client):
Expand Down
Loading