Skip to content

Commit faee325

Browse files
committed
* .pre-commit-config.yaml: New.
1 parent 10554a7 commit faee325

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.pre-commit-config.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
ci:
2+
autofix_prs: true
3+
autofix_commit_msg: |
4+
[pre-commit.ci] auto fixes from pre-commit.com hooks
5+
6+
for more information, see https://pre-commit.ci
7+
8+
repos:
9+
- repo: https://github.com/pre-commit/pre-commit-hooks
10+
rev: v6.0.0
11+
hooks:
12+
- id: trailing-whitespace
13+
exclude: '(.*testio.*|.*testempty.*|.*-bug.*)'
14+
- id: end-of-file-fixer
15+
exclude: '(.*testio.*|.*testempty.*|.*-bug.*)'
16+
- id: check-yaml
17+
- id: check-merge-conflict
18+
args: [ --assume-in-merge ]
19+
- id: check-added-large-files
20+
name: check-added-large-files (>3000kb)
21+
args: ['--maxkb=3000']
22+
23+
- repo: https://github.com/astral-sh/ruff-pre-commit
24+
# Ruff version.
25+
rev: v0.14.2
26+
hooks:
27+
# Run the linter.
28+
- id: ruff-check
29+
args: [ --fix, --exit-non-zero-on-fix ]
30+
types_or: [ python, pyi, jupyter ]
31+
require_serial: true
32+
# Run the formatter.
33+
- id: ruff-format
34+
types_or: [ python, pyi, jupyter ]

0 commit comments

Comments
 (0)