27 lines
776 B
YAML
27 lines
776 B
YAML
|
|
||
|
repos:
|
||
|
# Using this mirror lets us use mypyc-compiled black, which is about 2x faster
|
||
|
- repo: https://github.com/psf/black-pre-commit-mirror
|
||
|
rev: 24.2.0
|
||
|
hooks:
|
||
|
- id: black
|
||
|
# It is recommended to specify the latest version of Python
|
||
|
# supported by your project here, or alternatively use
|
||
|
# pre-commit's default_language_version, see
|
||
|
# https://pre-commit.com/#top_level-default_language_version
|
||
|
language_version: python3.11
|
||
|
|
||
|
- repo: https://github.com/pycqa/isort
|
||
|
rev: 5.13.2
|
||
|
hooks:
|
||
|
- id: isort
|
||
|
name: isort (python)
|
||
|
|
||
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||
|
# Ruff version.
|
||
|
rev: v0.3.0
|
||
|
hooks:
|
||
|
# Run the linter.
|
||
|
- id: ruff
|
||
|
# - id: ruff-format We don't need this because we have black and isort.
|