mirror of
https://github.com/JakeHillion/drgn.git
synced 2024-12-22 17:23:06 +00:00
1c0dbcd917
This has been useful to run manually before, but I haven't added it to the CI because it was somewhat noisy. But, it reports some really useful warnings, so let's configure it for our needs and add it to pre-commit. Signed-off-by: Omar Sandoval <osandov@osandov.com>
21 lines
502 B
YAML
21 lines
502 B
YAML
repos:
|
|
- repo: https://github.com/pycqa/isort
|
|
rev: 5.10.1
|
|
hooks:
|
|
- id: isort
|
|
name: isort (python)
|
|
- repo: https://github.com/psf/black
|
|
rev: 22.3.0
|
|
hooks:
|
|
- id: black
|
|
- repo: https://github.com/pycqa/flake8
|
|
rev: 4.0.1
|
|
hooks:
|
|
- id: flake8
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: v0.931
|
|
hooks:
|
|
- id: mypy
|
|
args: [--strict, --no-warn-return-any, --no-warn-unused-ignores]
|
|
files: ^drgn/.*\.py|_drgn.pyi$
|