From a341a6d70fd7cb836871fc6319dbcf41c3cd2679 Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Tue, 30 Jan 2024 19:04:27 -0800 Subject: [PATCH] Exclude encrypted python file from pre-commit hook --- .pre-commit-config.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 99a5dafb94..b90f26e671 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -34,12 +34,16 @@ repos: rev: "23.12.1" hooks: - id: black + # This is a `.py` file but is encrypted with sops + exclude: deployer/commands/generate/cryptnono_config/enc-blocklist-generator.secret.py # Lint: Python code - repo: https://github.com/pycqa/flake8 rev: "6.1.0" hooks: - id: flake8 + # This is a `.py` file but is encrypted with sops + exclude: deployer/commands/generate/cryptnono_config/enc-blocklist-generator.secret.py # Run `terraform fmt` on all our terraform files automatically - repo: https://github.com/yuvipanda/terraform-bin