exclude: | (?x) # Readme file(s) ^README\.md$| # Library files can have extraneous formatting (even minimized) /static/(src/)?lib/| # Repos using Sphinx to generate docs don't need prettying ^docs/_templates/.*\.html$| # You don't usually want a bot to modify your legal texts (LICENSE.*|COPYING.*) default_language_version: python: python3 repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.6.0 hooks: - id: check-added-large-files args: ['--maxkb=1000'] - id: check-json - id: pretty-format-json - id: check-merge-conflict # exclude files where underlines are not distinguishable from merge conflicts exclude: /README\.rst$|^docs/.*\.rst$ - id: check-yaml - id: end-of-file-fixer # exclude autogenerated files exclude: /README\.rst$|\.pot?$ - id: sort-simple-yaml - id: trailing-whitespace # exclude autogenerated files exclude: /README\.rst$|\.pot?$ - repo: https://github.com/psf/black rev: 24.8.0 hooks: - id: black language_version: python3 - repo: https://github.com/pre-commit/mirrors-isort rev: v5.10.1 hooks: - id: isort - repo: https://github.com/nbQA-dev/nbQA rev: 1.8.7 hooks: - id: nbqa-black additional_dependencies: [black==22.8.0] - id: nbqa-isort additional_dependencies: [isort==5.10.1]