From e5b89ca34015c9b3a018c2430efc200422f41c88 Mon Sep 17 00:00:00 2001 From: Chris Moradi <37349208+chrismoradi@users.noreply.github.com> Date: Fri, 20 May 2022 17:02:46 -0700 Subject: [PATCH] Adds pre-commit hooks for black, flake8, isort Closes: #194 --- .pre-commit-config.yaml | 13 +++++++++++++ dev-requirements.txt | 1 + 2 files changed, 14 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 000000000..aa9974502 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,13 @@ +repos: +- repo: https://github.com/psf/black + rev: 21.12b0 + hooks: + - id: black +- repo: https://github.com/PyCQA/flake8 + rev: 4.0.1 + hooks: + - id: flake8 +- repo: https://github.com/PyCQA/isort + rev: 5.10.1 + hooks: + - id: isort diff --git a/dev-requirements.txt b/dev-requirements.txt index e63e3ea70..2770e9125 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -3,3 +3,4 @@ black==21.12b0 websockets==10.1 maturin==0.12.11 isort==5.10.1 +pre-commit==2.19.0