-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
executable file
·63 lines (62 loc) · 2.11 KB
/
.pre-commit-config.yaml
File metadata and controls
executable file
·63 lines (62 loc) · 2.11 KB
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
53
54
55
56
57
58
59
60
61
62
63
repos:
- repo: local
hooks:
- id: mypy
name: mypy
entry: mypy model/ --strict-equality
language: system
pass_filenames: false
- id: mkdocs
name: mkdocs
entry: mkdocs build --strict
language: system
pass_filenames: false
# TODO: will implementing it later
# - id: ruff
# name: ruff
# entry: ruff check .
# language: system
# always_run: true
# pass_filenames: false
# - id: nbqa-pylint
# name: nbqa-pylint
# entry: env PYTHONPATH="." python3 -m pylint bootcamps/*.ipynb docs/*.ipynb
# language: system
# always_run: true
# pass_filenames: false
# - id: tests
# name: subset of tests
# entry: env PYTHONPATH="." python3 -m pytest -n=4 test/unit/ test/test_ops.py test/test_dtype.py test/test_schedule.py test/test_custom_function.py test/test_assign.py test/test_symbolic_shapetracker.py
# language: system
# always_run: true
# pass_filenames: false
# - id: example
# name: multi device tests
# entry: python3 test/external/external_test_example.py
# language: system
# always_run: true
# pass_filenames: false
# - id: whitespace
# name: strip whitespace
# entry: find smkdev-django-public -type f -name "*.py" -exec sed -i '' 's/ *$//' '{}' ';'
# language: system
# always_run: true
# pass_filenames: false
# - id: docs2
# name: docs2
# entry: python3 docs/abstractions2.py
# language: system
# always_run: true
# pass_filenames: false
# - id: devicetests
# name: select GPU tests
# entry: env GPU=1 PYTHONPATH="." pytest test/test_uops.py test/test_custom_function.py test/test_search.py
# language: system
# always_run: true
# pass_filenames: false
# - id: pylint
# name: pylint
# entry: env PYTHONPATH="." python3 -m pylint bootcamps/*.py
# language: system
# always_run: true
# pass_filenames: false