Add linter files
This commit is contained in:
47
.pre-commit-config.yaml
Normal file
47
.pre-commit-config.yaml
Normal file
@@ -0,0 +1,47 @@
|
||||
# To install hooks, run:
|
||||
# pre-commit install --hook-type pre-commit
|
||||
# pre-commit install --hook-type commit-msg
|
||||
|
||||
repos:
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.6.0
|
||||
hooks:
|
||||
- id: trailing-whitespace
|
||||
- id: end-of-file-fixer
|
||||
- id: mixed-line-ending
|
||||
- id: check-added-large-files
|
||||
- id: check-merge-conflict
|
||||
- id: check-case-conflict
|
||||
|
||||
- repo: https://github.com/codespell-project/codespell
|
||||
rev: v2.2.6
|
||||
hooks:
|
||||
- id: codespell
|
||||
args: ['--ignore-words-list', 'ontop,shft,hte', '--skip', 'makefile_conf/chain/*,tests/ragger/eip712_input_files/*']
|
||||
|
||||
- repo: https://github.com/pre-commit/mirrors-clang-format
|
||||
rev: v12.0.1
|
||||
hooks:
|
||||
- id: clang-format
|
||||
types_or: [c]
|
||||
|
||||
- repo: https://github.com/Mateusz-Grzelinski/actionlint-py
|
||||
rev: v1.6.27.13
|
||||
hooks:
|
||||
- id: actionlint
|
||||
types_or: [yaml]
|
||||
args: [-shellcheck='' -pyflakes='']
|
||||
|
||||
- repo: https://github.com/markdownlint/markdownlint
|
||||
rev: v0.12.0
|
||||
hooks:
|
||||
- id: markdownlint
|
||||
types_or: [markdown]
|
||||
|
||||
- repo: https://github.com/PyCQA/pylint
|
||||
rev: v2.16.2
|
||||
hooks:
|
||||
- id: pylint
|
||||
types: [python]
|
||||
args: ['--jobs=0', '--rcfile=tests/ragger/setup.cfg']
|
||||
files: '^tests/ragger/.*$'
|
||||
Reference in New Issue
Block a user