From 824028b01dcb1b0f74ae33ee9fdde120f7635ad9 Mon Sep 17 00:00:00 2001 From: Ishaan Desai Date: Mon, 1 Apr 2024 19:00:30 +0200 Subject: [PATCH] Fixes by pre-commit --- .pre-commit-config.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 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 00000000..3a121152 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,20 @@ +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v2.3.0 + hooks: + - id: check-xml + - id: check-merge-conflict + - id: mixed-line-ending + - id: end-of-file-fixer + - id: trailing-whitespace +# autopep8 for Python formatting +- repo: https://github.com/hhatto/autopep8 + rev: v2.1.0 + hooks: + - id: autopep8 + args: [--recursive --diff --aggressive --aggressive --exit-code --ignore E402 --max-line-length 120 .] +# isort for python imports +- repo: https://github.com/pycqa/isort + rev: 5.12.0 + hooks: + - id: isort