core/.pre-commit-config.yaml

40 lines
782 B
YAML
Raw Normal View History

exclude: |
(?x)(
^tests/unit_tests/resource|
_grpc.py|
_pb2.py
)
default_language_version:
2023-10-26 17:56:42 +00:00
python: python3.10
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
- id: check-docstring-first
- id: check-json
- id: check-merge-conflict
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
2023-10-26 18:05:32 +00:00
# - repo: https://github.com/timothycrosley/isort
# rev: 5.12.0
# hooks:
# - id: isort
- repo: https://github.com/ambv/black
2023-10-26 17:56:42 +00:00
rev: 23.9.1
hooks:
- id: black
args:
- --line-length=100
2023-10-26 17:56:42 +00:00
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8