core/.pre-commit-config.yaml

45 lines
927 B
YAML
Raw Normal View History

exclude: |
(?x)(
^tests/unit_tests/resource|
_grpc.py|
_pb2.py
)
default_language_version:
2022-06-25 20:18:03 +00:00
python: python3.8
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-toml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/timothycrosley/isort
2023-09-28 12:51:28 +00:00
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/ambv/black
2023-09-28 12:51:28 +00:00
rev: 23.9.1
hooks:
- id: black
args:
- --line-length=100
- --skip-string-normalization
2023-09-28 12:51:28 +00:00
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
args:
- --max-line-length=100
- --disable=protected-access