From ab5f48a2f70d8c33ce43059f794683b8712ebc80 Mon Sep 17 00:00:00 2001 From: Wei-Ting Hung <107704243+angehung5@users.noreply.github.com> Date: Mon, 9 Sep 2024 14:57:05 -0400 Subject: [PATCH] Create .pre-commit-config.yaml --- .pre-commit-config.yaml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .pre-commit-config.yaml 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