.pre-commit-config.yaml
default_language_version:
python: python3.11
repos:
- repo: https://github.com/psf/black
rev: 23.7.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/charliermarsh/ruff-pre-commit
# Ruff version.
rev: 'v0.0.284'
hooks:
- id: ruff
# Respect `exclude` and `extend-exclude` settings.
args: [ "--fix" ]