diff options
author | Andrea Censi <acensi@ethz.ch> | 2022-02-22 20:03:13 +0100 |
---|---|---|
committer | Andrea Censi <acensi@ethz.ch> | 2022-02-22 20:03:13 +0100 |
commit | 33765315bc7c41be459766ee461effc4b8b841c7 (patch) | |
tree | db88a0edabf62b3031a4cde121933f67ce11e2a2 /.pre-commit-config.yaml | |
parent | misc (diff) | |
parent | settings (diff) | |
download | act4e-33765315bc7c41be459766ee461effc4b8b841c7.tar.gz act4e-33765315bc7c41be459766ee461effc4b8b841c7.zip |
merge
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r-- | .pre-commit-config.yaml | 47 |
1 files changed, 26 insertions, 21 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a5c6e90..f4adb4c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,23 +1,28 @@ -exclude: .pre-commit-config.yaml -files: (^src/.*py)|(.*yaml) +--- repos: -- hooks: - - {id: check-added-large-files} - - {id: check-case-conflict} - - {id: check-executables-have-shebangs} - - {id: check-merge-conflict} - - {id: check-symlinks} - repo: https://github.com/pre-commit/pre-commit-hooks +- repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.1.0 -- hooks: - - args: [-l, '110', -t, py38] - id: black - repo: https://github.com/psf/black - rev: 21.12b0 -- hooks: - - args: [--mapping, '2', --sequence, '2', --offset, '0', --width, '150', --preserve-quotes] - id: yamlfmt - repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt - rev: 0.1.0 - -# sigil 1b050e28e72b639bc7781ce39208defb + hooks: + - id: check-added-large-files + - id: check-case-conflict + - id: check-executables-have-shebangs + - id: check-merge-conflict + - id: check-symlinks +# - id: trailing-whitespace +# - id: end-of-file-fixer +# - id: check-yaml +# - id: check-json +# - id: check-docstring-first +# - id: flake8 +# args: [--max-line-length=100] +- repo: https://github.com/psf/black + rev: 22.1.0 + hooks: + - id: black + args: [-l, '110'] +- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt + rev: 0.1.0 # or specific tag + hooks: + - id: yamlfmt + args: [--mapping, '2', --sequence, '2', --offset, '0', --width, '150', --preserve-quotes] +files: (^src/.*py)|(.*yaml) |