From cbe6acb4bbfd4c308e71eac7cad7b861d1566e59 Mon Sep 17 00:00:00 2001 From: MJedr Date: Wed, 18 Oct 2023 13:37:18 +0200 Subject: [PATCH] add pre-commit config --- .pre-commit-config.yaml | 18 ++++++++++++++++++ 1 file changed, 18 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..0ebdb50d --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,18 @@ +repos: + - repo: https://github.com/psf/black + rev: "22.8.0" + hooks: + - id: black + - repo: https://github.com/pre-commit/mirrors-prettier + rev: "v2.7.1" + hooks: + - id: prettier + - repo: https://github.com/pycqa/isort + rev: "5.12.0" + hooks: + - id: isort + - repo: https://github.com/pycqa/flake8 + rev: "3.9.2" + hooks: + - id: flake8 + args: ["--config=backend/setup.cfg"]