-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy path.pre-commit-config.yaml
37 lines (37 loc) · 1.1 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
# note: to install, run `pre-commit install`
# note: if you update this file, run `pre-commit autoupdate`
default_language_version:
python: python3.9
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.1
hooks:
# Run the linter.
- id: ruff
# run on ipynb, too
types_or: [ python, pyi, jupyter ]
args: ["--fix", "--show-source"]
# Run the formatter.
- id: ruff-format
types_or: [ python, pyi, jupyter ]
- repo: https://github.com/myint/docformatter
rev: v1.7.5
hooks:
- id: docformatter
args: ['--in-place', '--pre-summary-newline', '--make-summary-multi-line', '--wrap-descriptions', '120', '--wrap-summaries', '120']
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
exclude: ".ipynb|.pub"
- id: detect-private-key
- id: check-added-large-files
- id: check-yaml
- id: check-toml
- id: check-ast
language: python
types: [python]
- id: check-merge-conflict
exclude: \.rst$|\.pot?$
- id: requirements-txt-fixer