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: ...@@ -14,4 +14,6 @@ jobs:
with: with:
python-version: '3.10' python-version: '3.10'
architecture: 'x64' architecture: 'x64'
- run: |
pip install yapf isort
- uses: pre-commit/action@v3.0.0 - uses: pre-commit/action@v3.0.0
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: local
rev: v4.3.0
hooks: hooks:
- id: check-yaml - id: format-isort
- id: double-quote-string-fixer name: format-isort
- id: end-of-file-fixer language: python
- id: trailing-whitespace entry: make format-isort
- id: check-ast pass_filenames: false
- repo: https://github.com/PyCQA/docformatter - id: format-yapf
name: format-yapf
language: python
entry: make format-yapf
pass_filenames: false
- repo: https://github.com/PyCQA/docformatter
rev: v1.4 rev: v1.4
hooks: hooks:
- id: docformatter - id: docformatter
args: [--in-place, --wrap-summaries=80, --wrap-descriptions=80, --pre-summary-newline] args:
- repo: https://github.com/pre-commit/mirrors-yapf [
rev: v0.32.0 --in-place,
hooks: --wrap-summaries=80,
- id: yapf --wrap-descriptions=80,
- repo: https://github.com/pycqa/isort --pre-summary-newline,
rev: 5.10.1 ]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks: hooks:
- id: isort - id: double-quote-string-fixer
name: isort 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