Revert "update pre-commit black version (#3250)"

This reverts commit d954914a0a5dcd0a44a3beb5fcfe6d1148ff4231.
This commit is contained in:
pablodanswer 2024-12-16 13:57:56 -08:00
parent f1541d1fbe
commit 1df6a506ec

View File

@ -1,19 +1,19 @@
repos: repos:
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 24.3.0 rev: 23.3.0
hooks: hooks:
- id: black - id: black
language_version: python3.11 language_version: python3.11
- repo: https://github.com/asottile/reorder_python_imports - repo: https://github.com/asottile/reorder_python_imports
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`
exclude: ^backend/alembic/ exclude: ^backend/alembic/
# These settings will remove unused imports with side effects # These settings will remove unused imports with side effects
# Note: The repo currently does not and should not have imports with side effects # Note: The repo currently does not and should not have imports with side effects
@ -21,13 +21,7 @@ repos:
rev: v2.2.0 rev: v2.2.0
hooks: hooks:
- id: autoflake - id: autoflake
args: args: [ '--remove-all-unused-imports', '--remove-unused-variables', '--in-place' , '--recursive']
[
"--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.
@ -37,10 +31,10 @@ repos:
- repo: https://github.com/pre-commit/mirrors-prettier - repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0 rev: v3.1.0
hooks: hooks:
- id: prettier - id: prettier
types_or: [html, css, javascript, ts, tsx] types_or: [html, css, javascript, ts, tsx]
additional_dependencies: additional_dependencies:
- prettier - prettier
# We would like to have a mypy pre-commit hook, but due to the fact that # We would like to have a mypy pre-commit hook, but due to the fact that
# pre-commit runs in it's own isolated environment, we would need to install # pre-commit runs in it's own isolated environment, we would need to install