Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#8)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](pre-commit/pre-commit-hooks@v4.5.0...v4.6.0)
- [github.com/psf/black: 23.12.1 → 24.4.2](psf/black@23.12.1...24.4.2)
- [github.com/asottile/pyupgrade: v3.15.0 → v3.15.2](asottile/pyupgrade@v3.15.0...v3.15.2)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored May 31, 2024
1 parent 6c5b318 commit 13840ac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v4.6.0
hooks:
- id: check-ast
- id: check-builtin-literals
Expand All @@ -12,11 +12,11 @@ repos:
- id: requirements-txt-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.4.2
hooks:
- id: black
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.15.2
hooks:
- id: pyupgrade
args: [--py310-plus, --keep-runtime-typing]
Expand Down
6 changes: 2 additions & 4 deletions app/common/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
class Context(ABC):
@property
@abstractmethod
def db(self) -> database.Database:
...
def db(self) -> database.Database: ...

@property
@abstractmethod
def redis(self) -> redis.ServiceRedis:
...
def redis(self) -> redis.ServiceRedis: ...
3 changes: 1 addition & 2 deletions app/services/redis.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from aioredis import StrictRedis


class ServiceRedis(StrictRedis):
...
class ServiceRedis(StrictRedis): ...

0 comments on commit 13840ac

Please sign in to comment.