From 941a88c9e8884b907684613ee0940d864d86f578 Mon Sep 17 00:00:00 2001 From: Kaze Wong Date: Mon, 25 Sep 2023 12:12:32 -0400 Subject: [PATCH] add pre-commit yaml --- .pre-commit-config.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..213d97c8 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,23 @@ +repos: + - repo: https://github.com/ambv/black + rev: 23.9.1 + hooks: + - id: black + - repo: https://github.com/charliermarsh/ruff-pre-commit + rev: 'v0.0.290' + hooks: + - id: ruff + args: ["--fix"] + - repo: https://github.com/RobertCraigie/pyright-python + rev: v1.1.327 + hooks: + - id: pyright + additional_dependencies: [beartype, einops, jax, jaxtyping, pytest, tensorflow, tf2onnx, typing_extensions] + - repo: https://github.com/nbQA-dev/nbQA + rev: 1.7.0 + hooks: + - id: nbqa-black + additional_dependencies: [ipython==8.12, black] + - id: nbqa-ruff + args: ["--ignore=I001"] + additional_dependencies: [ipython==8.12, ruff] \ No newline at end of file