-
Notifications
You must be signed in to change notification settings - Fork 7
/
.pre-commit-config.yaml
52 lines (47 loc) · 1.39 KB
/
.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
exclude: docker-definition/openedx_customizations/.*
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: trailing-whitespace
exclude: .bumpversion.cfg
- id: debug-statements
- id: check-added-large-files
exclude: "^\
examples/.*/complete/themes/.*/lms/static/css/.*\
$"
- id: end-of-file-fixer
exclude: .bumpversion.cfg
- id: check-yaml
- repo: https://github.com/pycqa/flake8
rev: "6.0.0"
hooks:
- id: flake8
args:
- "--per-file-ignores=\
docker-definition/derex_django/derex_django/settings/default/*.py\
:F821,F405,F403,E266"
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.910
hooks:
- id: mypy
args:
["--install-types", "--non-interactive", "--ignore-missing-imports"]
exclude: "^\
examples/.*|\
docker-definition/derex_django/derex_django/settings/default/.*|\
docker-definition/derex_django/setup.py\
$"
- repo: https://github.com/ambv/black
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.9.1
hooks:
- id: isort
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v2.3.1
hooks:
- id: prettier
exclude: docs/html_templates/layout.html