Skip to content
Open
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
12 changes: 6 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
rev: v4.6.0
hooks:
- id: check-merge-conflict
- id: check-added-large-files
Expand All @@ -12,12 +12,12 @@ repos:
- id: pretty-format-json
args: ["--autofix", "--allow-missing-credentials"]
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
rev: 5.13.2
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://gitlab.com/pycqa/flake8
rev: 4.0.1
- repo: https://github.com/PyCQA/flake8
rev: 7.0.0
hooks:
- id: flake8
additional_dependencies: [flake8-print]
Expand All @@ -26,14 +26,14 @@ repos:
args:
- --select=F403,F406,F821,T003
- repo: https://github.com/humitos/mirrors-autoflake
rev: v1.3
rev: v1.1
hooks:
- id: autoflake
files: '\.py$'
exclude: '^\..*'
args: ["--in-place"]
- repo: https://github.com/psf/black
rev: 21.7b0
rev: 24.4.2
hooks:
- id: black
args: ["--target-version", "py38"]
1 change: 1 addition & 0 deletions fastapi_lazy/auth/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

KEY = environ.get("KEY", "secret")


# Authenticate Model
class LazyUser(BaseModel):
"""
Expand Down
1 change: 1 addition & 0 deletions fastapi_lazy/database/mongo.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

link = f'mongodb://{environ["MONGO_USER"]}:{environ["MONGO_PASSWORD"]}@{environ["MONGO_HOST"]}:{environ["MONGO_PORT"]}/{environ["MONGO_DB"]}'


# MongoDB
async def get_mongo() -> AsyncIOMotorClient:
"""
Expand Down
1 change: 1 addition & 0 deletions fastapi_lazy/database/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

log = logging.getLogger(__name__)


# Get from redis
async def get_from_redis(redis, key: str):
"""
Expand Down