Commit bc1bb798 authored by Jonas Kaufmann's avatar Jonas Kaufmann Committed by Antoine Kaufmann
Browse files

apply pre-commit only to python files

parent 59861a1f
......@@ -14,4 +14,6 @@ jobs:
with:
python-version: '3.10'
architecture: 'x64'
- run: |
pip install yapf isort
- uses: pre-commit/action@v3.0.0
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
- repo: local
hooks:
- id: check-yaml
- id: double-quote-string-fixer
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-ast
- repo: https://github.com/PyCQA/docformatter
- id: format-isort
name: format-isort
language: python
entry: make format-isort
pass_filenames: false
- id: format-yapf
name: format-yapf
language: python
entry: make format-yapf
pass_filenames: false
- repo: https://github.com/PyCQA/docformatter
rev: v1.4
hooks:
- id: docformatter
args: [--in-place, --wrap-summaries=80, --wrap-descriptions=80, --pre-summary-newline]
- repo: https://github.com/pre-commit/mirrors-yapf
rev: v0.32.0
hooks:
- id: yapf
- repo: https://github.com/pycqa/isort
rev: 5.10.1
- id: docformatter
args:
[
--in-place,
--wrap-summaries=80,
--wrap-descriptions=80,
--pre-summary-newline,
]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: isort
name: isort
- id: double-quote-string-fixer
types:
- "python"
- id: end-of-file-fixer
types:
- "python"
- id: trailing-whitespace
types:
- "python"
- id: check-ast
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment