Skip to content

Commit

Permalink
Fix isort pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
mildbyte committed Dec 28, 2021
1 parent 69c888a commit ecf4d61
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build_and_test_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
key: pip_cache
- name: "Run pre-commit hooks (typechecks and the formatter)"
run: |
pip install -U pip
pip install pre-commit
# NB this uses mypy in .pre-commit-config.yaml
pre-commit run --all-files
Expand Down
13 changes: 10 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,15 @@ repos:
- types-PyYAML
exclude: "^(examples|test|docs)/"

- repo: https://github.com/pycqa/isort
rev: 5.10.1
- repo: local
hooks:
- id: isort
args: ["--profile", "black", "--filter-files"]
name: isort
entry: isort
require_serial: true
language: python
language_version: python3
types_or: [cython, pyi, python]
args: ['--filter-files']
minimum_pre_commit_version: '2.9.2'
additional_dependencies: ['isort==5.10.1']

0 comments on commit ecf4d61

Please sign in to comment.