diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7c73053..241c338 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,7 +22,7 @@ repos: - id: detect-private-key - repo: https://github.com/psf/black - rev: 23.12.1 + rev: 24.3.0 hooks: - id: black name: "Black: The uncompromising Python code formatter" @@ -45,13 +45,13 @@ repos: - "*.bib,*.ipynb" - repo: https://github.com/asottile/pyupgrade - rev: v3.15.0 + rev: v3.15.2 hooks: - id: pyupgrade args: [ --py39-plus ] - repo: https://github.com/PyCQA/bandit - rev: 1.7.6 + rev: 1.7.8 hooks: - id: bandit language_version: python3 @@ -61,7 +61,7 @@ repos: - "B404,B602,B603,B607,B101" - repo: https://github.com/kynan/nbstripout - rev: 0.6.1 + rev: 0.7.1 hooks: - id: nbstripout args: [ "max-size 100k" ] diff --git a/src/llm_chain/conversation_chain.py b/src/llm_chain/conversation_chain.py index 6ff8970..c2eb7cb 100644 --- a/src/llm_chain/conversation_chain.py +++ b/src/llm_chain/conversation_chain.py @@ -1,4 +1,5 @@ """Wrapper around Lightning App.""" + import logging from collections import deque from typing import Optional, Union diff --git a/src/llm_chain/ui/main.py b/src/llm_chain/ui/main.py index 57bfa49..c9e2d61 100644 --- a/src/llm_chain/ui/main.py +++ b/src/llm_chain/ui/main.py @@ -1,4 +1,5 @@ """Python file to serve as the frontend""" + import logging import rich