-
Notifications
You must be signed in to change notification settings - Fork 2.6k
/
Copy path.pre-commit-config.yaml
39 lines (38 loc) · 1.44 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
##===----------------------------------------------------------------------===##
# Copyright (c) 2025, Modular Inc. All rights reserved.
#
# Licensed under the Apache License v2.0 with LLVM Exceptions:
# https://llvm.org/LICENSE.txt
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##===----------------------------------------------------------------------===##
repos:
- repo: local
hooks:
- id: mojo-format
name: mojo-format
entry: mojo format
language: system
files: '^(mojo|examples/mojo).*\.(mojo|🔥|py)$'
stages: [commit]
- id: check-docstrings
name: check-docstrings
entry: python3 ./mojo/stdlib/scripts/check-docstrings.py
language: system
pass_filenames: false
stages: [commit]
- id: check-license
name: check-license
entry: mojo mojo/stdlib/scripts/check_licenses.mojo
language: system
files: '^(mojo|examples/mojo).*\.(mojo|🔥|py)$'
stages: [commit]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.40.0
hooks:
- id: markdownlint
args: ["--config", "mojo/stdlib/scripts/.markdownlint.yaml", "--fix"]