Skip to content

Commit

Permalink
ci: Add absolufy-imports pre-commit hook (#1635)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
matthewfeickert committed Oct 13, 2021
1 parent b5bb9e3 commit 121903b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 121903b

Please sign in to comment.