drgn/.pre-commit-config.yaml
Stephen Brennan e5f10c68a8 pre-commit: Update isort version to 5.12.0
Currently on Ubuntu 22.04 LTS, pre-commit hook installation is broken
for isort, with an error that can be seen at [1]. The solution is to
update isort to 5.12.0.

[1]: https://github.com/PyCQA/isort/issues/2077

Signed-off-by: Stephen Brennan <stephen.s.brennan@oracle.com>
2023-01-30 10:24:41 -08:00

24 lines
604 B
YAML

repos:
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
exclude: ^contrib/
- repo: https://github.com/psf/black
rev: 22.12.0
hooks:
- id: black
exclude: ^contrib/
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
exclude: ^contrib/
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.931
hooks:
- id: mypy
args: [--show-error-codes, --strict, --no-warn-return-any, --no-warn-unused-ignores]
files: ^drgn/.*\.py|_drgn.pyi$