core/.pre-commit-config.yaml
Igor Lobanov 1c49780cd4 lint wip
2023-10-26 20:05:32 +02:00

45 lines
932 B
YAML

exclude: |
(?x)(
^tests/unit_tests/resource|
_grpc.py|
_pb2.py
)
default_language_version:
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-toml
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
# - repo: https://github.com/timothycrosley/isort
# rev: 5.12.0
# hooks:
# - id: isort
- repo: https://github.com/ambv/black
rev: 23.9.1
hooks:
- id: black
args:
- --line-length=100
- --skip-string-normalization
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
args:
- --max-line-length=100
- --disable=protected-access