-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
39 lines (36 loc) · 1.26 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
39 lines (36 loc) · 1.26 KB
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
minimum_pre_commit_version: 3.2.0
# Install both the pre-commit and commit-msg stage hooks on a plain
# `pre-commit install` (no --hook-type flags needed).
default_install_hook_types: [pre-commit, commit-msg]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: check-added-large-files
- id: check-ast
- id: check-case-conflict
- id: check-json
- id: check-merge-conflict
- id: check-toml
- id: check-xml
- id: check-yaml
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
args: ['--fix=auto']
# ruff replaces autoflake, isort, black and flake8(+bugbear)
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.7
hooks:
- id: ruff-check
args: [--exit-non-zero-on-fix]
- id: ruff-format
# Enforce Conventional Commits locally so python-semantic-release can derive
# versions and the changelog. Runs on the commit-msg stage; install it with
# `pre-commit install --hook-type commit-msg` (done by `make install`).
- repo: https://github.com/compilerla/conventional-pre-commit
rev: v4.0.0
hooks:
- id: conventional-pre-commit
stages: [commit-msg]