From 2ef61269ab146dd2c207eef8000b0d6a131225a4 Mon Sep 17 00:00:00 2001 From: Mathieu Dupuy Date: Wed, 16 Oct 2024 13:51:27 +0200 Subject: [PATCH] pre-commit: tomli optional additional dependency Issue: # --- .pre-commit-config.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8939dd3db..f685bddd6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -31,3 +31,6 @@ repos: hooks: - id: codespell exclude: locale|kickstarter-announcement.md|coreapi-0.1.1.js + additional_dependencies: + # python doesn't come with a toml parser prior to 3.11 + - "tomli; python_version < '3.11'"