mirror of https://github.com/mamba-org/mamba.git
54 lines
1.5 KiB
YAML
54 lines
1.5 KiB
YAML
exclude: libmamba/tests/data/repodata_json_cache*
|
|
repos:
|
|
- repo: https://github.com/psf/black
|
|
rev: 23.9.1
|
|
hooks:
|
|
- id: black
|
|
args: [--safe, --quiet]
|
|
- repo: https://github.com/asottile/blacken-docs
|
|
rev: 1.16.0
|
|
hooks:
|
|
- id: blacken-docs
|
|
additional_dependencies: [black==22.3.0]
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.4.0
|
|
hooks:
|
|
- id: trailing-whitespace
|
|
- id: end-of-file-fixer
|
|
- id: fix-encoding-pragma
|
|
args: [--remove]
|
|
- id: check-yaml
|
|
exclude: ^.+(/tests/|/recipe/).+$
|
|
- id: check-toml
|
|
- id: check-json
|
|
- id: check-merge-conflict
|
|
- id: pretty-format-json
|
|
args: [--autofix]
|
|
- id: debug-statements
|
|
language_version: python3
|
|
- repo: https://github.com/pre-commit/mirrors-isort
|
|
rev: v5.10.1
|
|
hooks:
|
|
- id: isort
|
|
exclude: tests/data
|
|
- repo: https://github.com/PyCQA/flake8
|
|
rev: 6.1.0
|
|
hooks:
|
|
- id: flake8
|
|
language_version: python3
|
|
additional_dependencies:
|
|
- flake8-typing-imports==1.15.0
|
|
- flake8-builtins==2.1.0
|
|
- flake8-bugbear==23.9.16
|
|
- flake8-isort==6.1.0
|
|
- repo: https://github.com/pre-commit/mirrors-clang-format
|
|
rev: v16.0.6
|
|
hooks:
|
|
- id: clang-format
|
|
args: [--style=file]
|
|
exclude: ".json"
|
|
- repo: https://github.com/cheshirekow/cmake-format-precommit
|
|
rev: v0.6.13
|
|
hooks:
|
|
- id: cmake-format
|