Skip to content

Commit

Permalink
build(isort): install with poetry
Browse files Browse the repository at this point in the history
pre-commit started failing with:

```
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: AssertionError: BUG: expected environment for python to be healthy immediately after install, please open an issue describing your environment

more info:

virtualenv python version did not match created version:
- actual version: 3.10.6.final.0
- expected version: 3.10.4.final.0
```

Quick fix while #696 gets on track.

Sadly I had to rollback #752 due to PyCQA/isort#1945.
  • Loading branch information
yajo committed Aug 28, 2022
1 parent 1d6fb24 commit a388226
Show file tree
Hide file tree
Showing 3 changed files with 113 additions and 93 deletions.
13 changes: 7 additions & 6 deletions .pre-commit-config.yaml
Expand Up @@ -46,12 +46,13 @@ repos:
language: system
pass_filenames: false
require_serial: true

# isorting our imports
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
hooks:
- id: isort
- id: poetry_isort
name: isort
entry: isort
require_serial: true
language: python
types_or: [cython, pyi, python]
args: ["--filter-files"]

# prettier to format our many yaml files
- repo: https://github.com/pre-commit/mirrors-prettier
Expand Down

0 comments on commit a388226

Please sign in to comment.