diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 56c520a..63e7d79 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,10 +2,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 hooks: - - id: end-of-file-fixer - exclude: (.txt$|.ipynb$|README.md$|readme.mde$) - - id: trailing-whitespace - exclude: (.txt$|README.md$) # - id: check-yaml - id: check-json - id: check-toml @@ -74,6 +70,14 @@ repos: - id: prettier types_or: [css, javascript] +- repo: https://github.com/executablebooks/mdformat + rev: 1.0.0 # Check for the latest version + hooks: + - id: mdformat + # Important: The GFM plugin is required for table support + additional_dependencies: + - mdformat-gfm + - repo: https://github.com/python-jsonschema/check-jsonschema rev: 0.36.0 hooks: @@ -86,10 +90,13 @@ repos: - id: check-compose-spec - id: check-dependabot -- repo: https://github.com/pre-commit/pre-commit-hooks +# the following hooks should always be at the end fo the file since they may add to what other hooks do +- repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 hooks: - id: end-of-file-fixer exclude: (.txt$|.ipynb$|README.md$|readme.mde$) - id: trailing-whitespace exclude: (.txt$|README.md$) + - id: mixed-line-ending + args: [--fix=lf]