-
Notifications
You must be signed in to change notification settings - Fork 317
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
39 lines (34 loc) · 938 Bytes
/
.pre-commit-config.yaml
File metadata and controls
39 lines (34 loc) · 938 Bytes
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
# Install the pre-commit hooks below with
# 'pre-commit install'
# Auto-update the version of the hooks with
# 'pre-commit autoupdate'
# Run the hooks on all files with
# 'pre-commit run --all'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-ast
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: end-of-file-fixer
files: \.(py|md)$
- id: trailing-whitespace
files: \.(py|md|ipynb)$
- id: debug-statements
files: \.py$ # only include python files
- id: mixed-line-ending # remove CR
args: [--fix=lf]
- repo: local
hooks:
- id: check-license
name: Check license headers
entry: python ./.github/check_license_headers.py
language: python
pass_filenames: false # only run this check once globally per repo
always_run: true
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.9.10
hooks:
- id: ruff