Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gasse committed May 9, 2024
1 parent 680e499 commit 13b5046
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
fail_fast: false

default_language_version:
python: python3

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: trailing-whitespace
exclude: ^(.*)\.md$
- id: end-of-file-fixer
- id: check-yaml
exclude: ^(.circleci/recipe|recipe) # conda build recipes are templated
- id: check-added-large-files
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.1.1
hooks:
- id: clang-format
args: [--style=file, -i]
- id: clang-tidy
args: [--fix, --fix-errors]
- repo: https://github.com/psf/black
rev: 24.2.0
hooks:
- id: black
args: [--config=./pyproject.toml]
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.1
hooks:
- id: blacken-docs
args: [ '--line-length', '100' ]
additional_dependencies: [black]
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: forbid-crlf
- id: remove-crlf
# Black does not clear tabs in docstrings
- id: forbid-tabs
files: '.*\.py$'
- id: remove-tabs
files: '.*\.py$'
args: [ '--whitespaces-count', '4' ]

0 comments on commit 13b5046

Please sign in to comment.