Skip to content

Commit

Permalink
fix: replace deprecated isort to original
Browse files Browse the repository at this point in the history
  • Loading branch information
Olegt0rr committed Aug 16, 2023
1 parent b1b974a commit 740de96
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
14 changes: 4 additions & 10 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]

Expand Down

0 comments on commit 740de96

Please sign in to comment.