Skip to content

Commit 121903b

Browse files
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
1 parent b5bb9e3 commit 121903b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ repos:
3131
- id: pyupgrade
3232
args: ["--py37-plus"]
3333

34+
- repo: https://github.com/MarcoGorelli/absolufy-imports
35+
rev: v0.3.0
36+
hooks:
37+
- id: absolufy-imports
38+
3439
- repo: https://github.com/psf/black
3540
rev: 21.9b0
3641
hooks:

0 commit comments

Comments
 (0)