926fc6326f
Updated requirements and pre-commit-config files to support python3.12. Tests from tobiko/tests/functional/run have been removed to avoid failures on tobiko-infrared-centos-9 with multiprocessing.pool module: https://github.com/dask/dask/issues/5806 These tests were going to be removed in any case at: https://review.opendev.org/c/x/tobiko/+/936633 TODO: after updating ansible-lint version used to 6.21.1, due to the big amount of failures, ansible-lint is mostly skipped (see .ansible-lint file) - this will be fixed in a follow up patch. Change-Id: I2768cd8d0c2b5f015f1beb0e42dae67dd24f97dd
70 lines
1.8 KiB
YAML
70 lines
1.8 KiB
YAML
---
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks.git
|
|
rev: v3.4.0
|
|
hooks:
|
|
- id: check-added-large-files
|
|
- id: check-byte-order-marker
|
|
- id: check-case-conflict
|
|
- id: check-executables-have-shebangs
|
|
- id: check-merge-conflict
|
|
- id: check-symlinks
|
|
- id: check-yaml
|
|
args: [--allow-multiple-documents, --unsafe]
|
|
- id: detect-private-key
|
|
- id: end-of-file-fixer
|
|
- id: forbid-new-submodules
|
|
- id: requirements-txt-fixer
|
|
args:
|
|
- doc/requirements.txt
|
|
- extra-requirements.txt
|
|
- infrared_plugin/requirements.txt
|
|
- linters-requirements.txt
|
|
- requirements.txt
|
|
- test-requirements.txt
|
|
- upper-constraints.txt
|
|
- id: trailing-whitespace
|
|
|
|
- repo: https://github.com/pycqa/flake8.git
|
|
rev: '6.1.0' # pick a git hash / tag to point to
|
|
hooks:
|
|
- id: flake8
|
|
additional_dependencies: [flake8-import-order]
|
|
files: ^tobiko/
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy.git
|
|
rev: 'v0.981'
|
|
hooks:
|
|
- id: mypy
|
|
files: ^tobiko/
|
|
entry: mypy --install-types --non-interactive tobiko/
|
|
pass_filenames: false
|
|
# args: [--ignore-missing-imports]
|
|
|
|
- repo: https://github.com/ansible/ansible-lint.git
|
|
rev: v6.21.1
|
|
hooks:
|
|
- id: ansible-lint
|
|
files: \.(yaml|yml)$
|
|
|
|
- repo: local
|
|
hooks:
|
|
- id: pylint
|
|
name: pylint
|
|
entry: .tox/pep8/bin/pylint
|
|
files: ^tobiko/
|
|
language: system
|
|
types: [python]
|
|
|
|
# - repo: https://github.com/adrienverge/yamllint.git
|
|
# rev: v1.23.0
|
|
# hooks:
|
|
# - id: yamllint
|
|
# files: \.(yaml|yml)$
|
|
|
|
# - repo: https://opendev.org/openstack/bashate.git
|
|
# rev: 2.0.0
|
|
# hooks:
|
|
# - id: bashate
|