forked from fedejaure/cookiecutter-modern-pypackage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
54 lines (54 loc) · 1.57 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
46
47
48
49
50
51
52
53
54
---
default_install_hook_types:
- pre-commit
- post-checkout
- post-merge
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-toml
exclude: "^{{cookiecutter.project_name}}/"
- id: check-json
exclude: "^{{cookiecutter.project_name}}/"
- id: check-yaml
exclude: "^{{cookiecutter.project_name}}/"
- id: debug-statements
exclude: "^{{cookiecutter.project_name}}/"
- id: check-merge-conflict
- id: pretty-format-json
args: [--autofix, '--no-sort-keys']
exclude: "^{{cookiecutter.project_name}}/"
- id: end-of-file-fixer
exclude: "^{{cookiecutter.project_name}}/"
- id: trailing-whitespace
exclude: |
(?x)^(
.bumpversion.cfg|
{{cookiecutter.project_name}}/
)
- repo: https://github.com/timothycrosley/isort
rev: 5.13.2
hooks:
- id: isort
exclude: "^{{cookiecutter.project_name}}/"
- repo: https://github.com/psf/black
rev: 24.2.0
hooks:
- id: black
exclude: "^{{cookiecutter.project_name}}/"
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.1
hooks:
- id: ruff
args: [ --fix ]
exclude: "^{{cookiecutter.project_name}}/"
- repo: https://github.com/citation-file-format/cffconvert
rev: 5295f87c0e261da61a7b919fc754e3a77edd98a7
hooks:
- id: validate-cff
- repo: https://github.com/python-poetry/poetry
rev: 1.7.1
hooks:
- id: poetry-check
- id: poetry-install