From b2bd476c80f32bc0d6e86af081d202cb6a613c90 Mon Sep 17 00:00:00 2001 From: Eric Joanis Date: Wed, 30 Oct 2024 17:36:20 -0400 Subject: [PATCH] chore: migrate the pre-commit config to 4.x style --- .pre-commit-config.yaml | 6 +++--- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 94f90799..c1a35536 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,19 +17,19 @@ repos: entry: isort language: system types: [python] - stages: [commit] + stages: [pre-commit] - id: black name: black entry: black language: system types: [python] - stages: [commit] + stages: [pre-commit] - id: mypy name: mypy entry: mypy language: system types: [python] - stages: [commit] + stages: [pre-commit] - repo: https://github.com/pycqa/flake8 # do flake8 last to avoid duplicate reports rev: 7.0.0 diff --git a/pyproject.toml b/pyproject.toml index a8691115..0e18637d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,7 +60,7 @@ dev = [ "isort>=5.10.1", "mypy>=1; python_version < '3.8'", "mypy>=1.8.0; python_version >= '3.8'", - "pre-commit>=2.6.0", + "pre-commit>=3.2.0", ] # This one is a bit special and cannot depend on other features, # because if it depends on `g2p[api]` then we end up with