diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000..11d8712b --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,29 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.4.0 + hooks: + - id: check-ast + - id: check-merge-conflict + - id: check-yaml + - id: debug-statements + - id: end-of-file-fixer + types: [python] + - id: requirements-txt-fixer + - id: trailing-whitespace + types: [python] + + - repo: https://github.com/psf/black + rev: stable + hooks: + - id: black + + - repo: https://github.com/pre-commit/pygrep-hooks + rev: v1.7.1 + hooks: + - id: rst-backticks + - id: rst-inline-touching-normal + + - repo: https://github.com/pre-commit/mirrors-pylint + rev: v2.6.0 + hooks: + - id: pylint