-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
48 lines (48 loc) · 1.26 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
48 lines (48 loc) · 1.26 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- id: check-added-large-files
- id: check-json
- id: check-merge-conflict
- id: check-toml
- id: check-xml
- id: detect-private-key
- id: mixed-line-ending
args: ["--fix=lf"]
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.4.1
hooks:
- id: remove-tabs
- id: remove-crlf
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.9.6
hooks:
# Run the linter.
- id: ruff
types_or: [python, pyi, jupyter]
args: [--fix]
# Run the formatter.
- id: ruff-format
types_or: [python, pyi, jupyter]
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.394
hooks:
- id: pyright
- repo: https://github.com/mwouts/jupytext
rev: v1.16.7
hooks:
- id: jupytext
args: [--sync]
# - repo: https://github.com/ryanpeach/mdlinker
# rev: v1.7.2
# hooks:
# - id: enforce-ascii
# files: continuing_education/.*\.md
# - id: mdlinker
# files: continuing_education/.*\.md
# args:
# - "--fix"
# - "--allow-dirty"