From 740de964eed58c9c9e536cef27025f728c493a43 Mon Sep 17 00:00:00 2001 From: Oleg A Date: Thu, 17 Aug 2023 01:07:10 +0300 Subject: [PATCH] fix: replace deprecated isort to original --- .pre-commit-config.yaml | 14 ++++---------- pyproject.toml | 4 ++-- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f337c9b..953ca20 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,6 +4,7 @@ repos: hooks: - id: black files: ^(magic_filter|tests) + - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.3.0 hooks: @@ -14,22 +15,15 @@ repos: - id: trailing-whitespace - id: check-merge-conflict - - repo: https://github.com/asottile/seed-isort-config - rev: master - hooks: - - id: seed-isort-config - additional_dependencies: [toml] - files: ^(magic_filter|tests) - - - repo: https://github.com/pre-commit/mirrors-isort - rev: master # pick the isort version you'd like to use from https://github.com/pre-commit/mirrors-isort/releases + - repo: https://github.com/pycqa/isort + rev: 5.11.2 hooks: - id: isort additional_dependencies: [toml] files: ^(magic_filter|tests) - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v0.770' # pick sha/tag from https://github.com/pre-commit/mirrors-mypy + rev: v1.5.0 hooks: - id: mypy files: ^magic_filter diff --git a/pyproject.toml b/pyproject.toml index fcc76d5..011e756 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -39,9 +39,9 @@ dev = [ "pytest-cov~=3.0.0", "pytest-html~=3.1.1", "flake8~=5.0.4", - "mypy~=0.971", + "mypy~=1.5.0", "black~=22.8.0", - "isort~=5.10.1", + "isort~=5.12.0", "types-setuptools~=65.3.0", ]