From 121903b3412756e8f6a8597f0c0eb5c28f4e2192 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Wed, 13 Oct 2021 12:11:59 -0500 Subject: [PATCH] ci: Add absolufy-imports pre-commit hook (#1635) * Add absolufy-imports pre-commit hook to ensure that absolute imports are used - Motivation comes from switching over to absolute imports in PR #1539 - c.f. https://github.com/MarcoGorelli/absolufy-imports --- .pre-commit-config.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fde78cadff..2224bdb720 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,6 +31,11 @@ repos: - id: pyupgrade args: ["--py37-plus"] +- repo: https://github.com/MarcoGorelli/absolufy-imports + rev: v0.3.0 + hooks: + - id: absolufy-imports + - repo: https://github.com/psf/black rev: 21.9b0 hooks: