forked from elastic/apm-agent-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
29 lines (29 loc) · 985 Bytes
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
repos:
# seed-isort-config disabled for now, see https://github.com/asottile/seed-isort-config/issues/10
#- repo: https://github.com/asottile/seed-isort-config
# rev: v1.1.0
# hooks:
# - id: seed-isort-config
- repo: https://github.com/pre-commit/mirrors-isort
rev: v4.3.4
hooks:
- id: isort
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
language_version: python3
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: flake8
exclude: elasticapm\/utils\/wrapt|build|src|tests|dist|conftest.py|setup.py
- repo: local
hooks:
- id: license-header-check
name: License header check
description: Checks the existance of license headers in all Python files
entry: ./tests/scripts/license_headers_check.sh
exclude: "(elasticapm/utils/wrapt/.*|tests/utils/stacks/linenos.py)"
language: script
types: [python]