From 5742ac4790cbb629f484d8f4c0858d802c578360 Mon Sep 17 00:00:00 2001 From: Evan Reichard Date: Sun, 21 Mar 2021 22:04:00 -0400 Subject: [PATCH] Add client pre-commit --- .pre-commit-config.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dcf56fb..e3b9a5a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,12 +1,22 @@ repos: +- repo: local + hooks: + - id: overseer-client-yarn-lint + name: overseer-client-yarn-lint + entry: bash -c 'cd src/overseer_client && exec yarn lint --max-warnings 0' + language: system + types: [javascript] + files: '^src/overseer_client/src/' - repo: https://github.com/psf/black rev: 20.8b1 hooks: - id: black + name: overseer-server-black language_version: python3.9 files: '^src/overseer/|^setup.py|^tests/overseer/' - repo: https://gitlab.com/pycqa/flake8 rev: 3.9.0 hooks: - id: flake8 + name: overseer-server-flake8 files: '^src/overseer/|^setup.py|^tests/overseer/'