mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-11 08:30:51 +02:00
update pre-commit black version (#3250)
This commit is contained in:
parent
bee74ac360
commit
d954914a0a
@ -1,6 +1,6 @@
|
|||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 23.3.0
|
rev: 24.3.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
language_version: python3.11
|
language_version: python3.11
|
||||||
@ -9,7 +9,7 @@ repos:
|
|||||||
rev: v3.9.0
|
rev: v3.9.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: reorder-python-imports
|
- id: reorder-python-imports
|
||||||
args: ['--py311-plus', '--application-directories=backend/']
|
args: ["--py311-plus", "--application-directories=backend/"]
|
||||||
# need to ignore alembic files, since reorder-python-imports gets confused
|
# need to ignore alembic files, since reorder-python-imports gets confused
|
||||||
# and thinks that alembic is a local package since there is a folder
|
# and thinks that alembic is a local package since there is a folder
|
||||||
# in the backend directory called `alembic`
|
# in the backend directory called `alembic`
|
||||||
@ -21,7 +21,13 @@ repos:
|
|||||||
rev: v2.2.0
|
rev: v2.2.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: autoflake
|
- id: autoflake
|
||||||
args: [ '--remove-all-unused-imports', '--remove-unused-variables', '--in-place' , '--recursive']
|
args:
|
||||||
|
[
|
||||||
|
"--remove-all-unused-imports",
|
||||||
|
"--remove-unused-variables",
|
||||||
|
"--in-place",
|
||||||
|
"--recursive",
|
||||||
|
]
|
||||||
|
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
# Ruff version.
|
# Ruff version.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user