Update pre-commit hooks

This commit is contained in:
Ayaz Salikhov
2023-07-20 14:34:18 +04:00
parent b94d9e074c
commit ca6272c2be

View File

@@ -14,7 +14,7 @@
repos: repos:
# Autoupdate: Python code # Autoupdate: Python code
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v3.8.0 rev: v3.9.0
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: [--py39-plus] args: [--py39-plus]
@@ -28,7 +28,7 @@ repos:
# Autoformat: Python code # Autoformat: Python code
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 23.3.0 rev: 23.7.0
hooks: hooks:
- id: black - id: black
args: [--target-version=py39] args: [--target-version=py39]
@@ -127,7 +127,7 @@ repos:
# Run black on python code blocks in documentation files. # Run black on python code blocks in documentation files.
- repo: https://github.com/asottile/blacken-docs - repo: https://github.com/asottile/blacken-docs
rev: 1.14.0 rev: 1.15.0
hooks: hooks:
- id: blacken-docs - id: blacken-docs
# --skip-errors is added to allow us to have python syntax highlighting even if # --skip-errors is added to allow us to have python syntax highlighting even if