-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
40 lines (40 loc) · 1.05 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
default_language_version:
python: python3
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: check-added-large-files
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.4.4
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: "local"
hooks:
- entry: tsc --noEmit
id: "tsc"
name: "tsc"
language: node
pass_filenames: false
types_or: [ts, tsx]
args: []
require_serial: false
additional_dependencies: ["typescript@~4.1.3"]
minimum_pre_commit_version: "0"
exclude: "packages/app/public/.*|packages/app/build/.*"
- repo: local
hooks:
- entry: pyright
id: "pyright"
name: "pyright"
types_or: [python]
language: node
pass_filenames: true
additional_dependencies: ["pyright"]