-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
36 lines (35 loc) · 1.06 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
---
# See https://pre-commit.com for more information
default_language_version:
python: python3.10
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
rev: v5.0.0
hooks:
- id: trailing-whitespace
exclude: '(notebooks|attic|benchmark|testdata)/.*'
- id: end-of-file-fixer
exclude: LICENSE
- id: check-yaml
- id: check-toml
- id: check-added-large-files
args:
- '--maxkb=1024000'
- id: debug-statements
- id: detect-private-key
- id: mixed-line-ending
args:
- '--fix=lf'
- id: check-docstring-first
- id: check-case-conflict # Check for files with names that would conflict on a case-insensitive filesystem
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
exclude: '(notebooks|attic|benchmark|testdata)/.*'
- repo: 'https://github.com/psf/black'
rev: 24.10.0
hooks:
- id: black
exclude: '(notebooks|attic|benchmark|testdata)/.*'