# pre-commit is a tool to perform a predefined set of tasks manually and/or # automatically before git commits are made. # # Config reference: https://pre-commit.com/#pre-commit-configyaml---top-level # # Common tasks # # - Run on all files: pre-commit run --all-files # - Register git hooks: pre-commit install --install-hooks # repos: # Autoformat: Python code, syntax patterns are modernized - repo: https://github.com/asottile/pyupgrade rev: v3.21.2 hooks: - id: pyupgrade # check-tmp is a Python based test script run in created environments # that can be Python 3.5, older than the Python version required to run # repo2docker. exclude: check-tmp # Autoformat: Python code - repo: https://github.com/psf/black-pre-commit-mirror rev: 25.12.0 hooks: - id: black # Autoformat: Python code - repo: https://github.com/pycqa/isort rev: 7.0.0 hooks: - id: isort # Autoformat: markdown - repo: https://github.com/rbubley/mirrors-prettier rev: v3.7.4 hooks: - id: prettier files: ".md" # pre-commit.ci config reference: https://pre-commit.ci/#configuration ci: autoupdate_schedule: monthly