From 041e76123b19661c11444c64f9351a323cd8aea7 Mon Sep 17 00:00:00 2001 From: fdev31 Date: Thu, 27 Apr 2023 16:49:08 +0200 Subject: [PATCH] initial commit --- .pre-commit-config.yaml | 42 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 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..845a975 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,42 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: "v4.4.0" + hooks: + - id: check-yaml + - id: check-json + - id: pretty-format-json + args: ['--autofix', '--no-sort-keys'] + # - repo: https://github.com/pre-commit/mirrors-prettier + # rev: "" # Use the sha or tag you want to point at + # hooks: + # - id: prettier + - repo: https://github.com/ambv/black + rev: "23.1.0" + hooks: + - id: black + - repo: https://github.com/lovesegfault/beautysh + rev: "v6.2.1" + hooks: + - id: beautysh + - repo: https://github.com/adrienverge/yamllint + rev: "v1.29.0" + hooks: + - id: yamllint + +# - repo: local +# hooks: +# - id: isort +# name: Isort +# entry: isort --check --diff . +# language: system +# pass_filenames: false +# # - id: mypy +# # name: Mypy +# # entry: mypy . +# # language: system +# # pass_filenames: false +# - id: black +# name: Black +# entry: black --check . +# language: system +# pass_filenames: false