2023-09-05 23:34:33 +01:00
|
|
|
exclude: ^contrib/
|
2021-12-22 22:40:06 +00:00
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pycqa/isort
|
2023-01-30 17:27:11 +00:00
|
|
|
rev: 5.12.0
|
2021-12-22 22:40:06 +00:00
|
|
|
hooks:
|
|
|
|
- id: isort
|
|
|
|
name: isort (python)
|
|
|
|
- repo: https://github.com/psf/black
|
2023-07-19 22:51:36 +01:00
|
|
|
rev: 23.7.0
|
2021-12-22 22:40:06 +00:00
|
|
|
hooks:
|
|
|
|
- id: black
|
2022-05-17 23:23:52 +01:00
|
|
|
- repo: https://github.com/pycqa/flake8
|
2022-12-13 23:38:15 +00:00
|
|
|
rev: 6.0.0
|
2022-05-17 23:23:52 +01:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
2021-12-22 22:40:06 +00:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
2022-04-01 01:00:26 +01:00
|
|
|
rev: v0.931
|
2021-12-22 22:40:06 +00:00
|
|
|
hooks:
|
|
|
|
- id: mypy
|
2022-12-13 22:58:51 +00:00
|
|
|
args: [--show-error-codes, --strict, --no-warn-return-any, --no-warn-unused-ignores]
|
2021-12-22 22:40:06 +00:00
|
|
|
files: ^drgn/.*\.py|_drgn.pyi$
|
2023-09-05 23:34:33 +01:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
rev: v4.4.0
|
|
|
|
hooks:
|
|
|
|
- id: trailing-whitespace
|
|
|
|
exclude_types: [diff]
|
|
|
|
- id: end-of-file-fixer
|
|
|
|
exclude_types: [diff]
|
|
|
|
- id: check-yaml
|
|
|
|
- id: check-added-large-files
|
|
|
|
- id: debug-statements
|
|
|
|
- id: check-merge-conflict
|
|
|
|
- repo: https://github.com/netromdk/vermin
|
|
|
|
rev: v1.5.2
|
|
|
|
hooks:
|
|
|
|
- id: vermin
|
|
|
|
# The vmtest package in general should adhere to the same version
|
|
|
|
# requirements as drgn, with the following exceptions: The manage &
|
|
|
|
# kbuild scripts are used by Github Actions and need not be broadly
|
2023-09-07 17:04:43 +01:00
|
|
|
# compatible.
|
|
|
|
exclude: "^vmtest/(manage|kbuild).py$"
|
2023-09-05 23:34:33 +01:00
|
|
|
args: ['-t=3.6-', '--violations', '--eval-annotations']
|