diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bf37fe88c71..764bb19e015 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,13 @@ repos: +- repo: https://github.com/pycqa/flake8 + rev: 4.0.1 + hooks: + - id: flake8 + exclude: ^(.git|__pycache__|docs/source/conf.py|old|build|dist|tests|jina/resources/|docarray/proto/pb/docarray_pb2.py|docarray/proto/pb/docarray_pb2_grpc.py|jina/proto/pb2/docarray_pb2.py|jina/proto/pb2/docarray_pb2_grpc.py) + args: + - --max-complexity=10 + - --max-line-length=127 + - --select=E9,F63,F7,F82 - repo: https://github.com/ambv/black rev: 22.3.0 hooks: @@ -10,6 +19,6 @@ repos: - repo: https://github.com/asottile/blacken-docs rev: v1.12.1 hooks: - - id: blacken-docs - args: - - -S \ No newline at end of file + - id: blacken-docs + args: + - -S \ No newline at end of file