-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
33 lines (33 loc) · 924 Bytes
/
.pre-commit-config.yaml
File metadata and controls
33 lines (33 loc) · 924 Bytes
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v5.0.0'
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-builtin-literals
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- id: detect-private-key
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace{% if cookiecutter.code_formatter == 'black' %}
- repo: https://github.com/psf/black
rev: 'stable'
hooks:
- id: black
language_version: python3.9
exclude: ^notebooks{% else %}
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.9.7'
hooks:
- id: ruff{% endif %}
- repo: https://github.com/pycqa/isort
rev: '6.0.1'
hooks:
- id: isort
- repo: https://github.com/asottile/pyupgrade
rev: 'v3.19.1'
hooks:
- id: pyupgrade
args: [ --py38-plus ]