core/.pre-commit-config.yaml

45 lines
883 B
YAML
Raw Normal View History

exclude: |
(?x)(
^tests/unit_tests/resource|
_grpc.py|
_pb2.py
)
default_language_version:
2023-10-30 21:00:55 +00:00
python: python3.10
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
2023-10-30 21:00:55 +00:00
rev: v4.5.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-docstring-first
- id: check-json
- id: check-merge-conflict
2023-10-26 21:07:35 +00:00
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
2023-10-30 21:00:55 +00:00
- id: requirements-txt-fixer
2023-10-26 21:07:35 +00:00
- repo: https://github.com/timothycrosley/isort
2023-10-30 21:00:55 +00:00
rev: 5.12.0
2023-10-26 21:07:35 +00:00
hooks:
- id: isort
- repo: https://github.com/ambv/black
2023-10-30 21:00:55 +00:00
rev: 23.10.1
hooks:
- id: black
2023-10-30 21:00:55 +00:00
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
2023-10-30 21:00:55 +00:00
# - repo: https://github.com/python/mypy
# rev: v1.6.1
# hooks:
# - id: mypy