-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
45 lines (45 loc) · 1.15 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
41
42
43
44
45
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: check-ast
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-merge-conflict
- id: requirements-txt-fixer
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "cafd550"
hooks:
- id: prettier
files: \.(css|less|scss|json|yaml|yml|html|md|mdx|js|jsx|ts|tsx|graphql|gql|vue|svelte|toml)$
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.1.3
hooks:
- id: ruff
args: ["--fix"]
- repo: local
hooks:
- id: black
name: black
language: system
entry: black
types: [python]
- id: isort
name: isort
language: system
entry: isort
args: ["--profile", "black"]
types: [python]
- id: mypy
name: mypy
language: system
entry: mypy denoisers
pass_filenames: false
always_run: true
- id: pytest
name: pytest
language: system
entry: python -m pytest
pass_filenames: false
always_run: true