diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..9de84a7 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,36 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: "v4.6.0" + hooks: + - id: trailing-whitespace + exclude: tdump\.[0-9]* + - id: end-of-file-fixer + - id: check-docstring-first + - id: check-yaml + + - repo: https://github.com/asottile/pyupgrade + rev: "v3.17.0" + hooks: + - id: pyupgrade + args: [--py37-plus] + + - repo: https://github.com/PyCQA/isort + rev: "5.13.2" + hooks: + - id: isort + + - repo: https://github.com/psf/black + rev: "24.8.0" + hooks: + - id: black + + - repo: https://github.com/PyCQA/flake8 + rev: "7.1.1" + hooks: + - id: flake8 + args: [--max-line-length=88] + + - repo: https://github.com/codespell-project/codespell + rev: v2.3.0 + hooks: + - id: codespell