update .pre-commit-config.yaml

This commit is contained in:
Aminda Suomalainen 2023-11-17 12:45:10 +02:00
parent 2a9f4de657
commit e6dd016318
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
1 changed files with 5 additions and 5 deletions

View File

@ -54,7 +54,7 @@ repos:
# https://github.com/Mikaela/gist/blob/master/doctoc.txt # https://github.com/Mikaela/gist/blob/master/doctoc.txt
args: [--update-only] args: [--update-only]
- repo: https://github.com/pre-commit/mirrors-mypy - repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.6.1" rev: "v1.7.0"
hooks: hooks:
- id: mypy - id: mypy
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
@ -72,25 +72,25 @@ repos:
hooks: hooks:
- id: add-trailing-comma - id: add-trailing-comma
- repo: https://github.com/pre-commit/mirrors-prettier - repo: https://github.com/pre-commit/mirrors-prettier
rev: "v3.0.3" rev: "v3.1.0"
hooks: hooks:
- id: prettier - id: prettier
exclude_types: [python, pyi, jupyter] exclude_types: [python, pyi, jupyter]
additional_dependencies: [ additional_dependencies: [
# https://www.npmjs.com/package/prettier # https://www.npmjs.com/package/prettier
"prettier@3.0.3", "prettier@3.1.0",
# https://www.npmjs.com/package/@prettier/plugin-ruby # https://www.npmjs.com/package/@prettier/plugin-ruby
"@prettier/plugin-ruby@4.0.2", "@prettier/plugin-ruby@4.0.2",
] ]
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 23.10.1 rev: 23.11.0
hooks: hooks:
- id: black - id: black
#Refer to pyproject.toml #Refer to pyproject.toml
#args: ["--line-length", "79", "--target-version", "py310"] #args: ["--line-length", "79", "--target-version", "py310"]
#- id: black-jupyter #- id: black-jupyter
- repo: https://github.com/scop/pre-commit-shfmt - repo: https://github.com/scop/pre-commit-shfmt
rev: v3.7.0-1 rev: v3.7.0-3
hooks: hooks:
- id: shfmt - id: shfmt
#- id: shfmt-docker #- id: shfmt-docker