-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
43 lines (41 loc) · 989 Bytes
/
.pre-commit-config.yaml
File metadata and controls
43 lines (41 loc) · 989 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
34
35
36
37
38
39
40
41
42
43
default_language_version:
python: python3.8
default_install_hook_types:
- pre-commit
- pre-push
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: mixed-line-ending
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.7
hooks:
- id: ruff
args: [ --fix ]
# Spell Checker
- repo: https://github.com/crate-ci/typos
rev: v1.24.6
hooks:
- id: typos
# Git commit linter
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
# Detect hardcoded secrets
- repo: https://github.com/zricethezav/gitleaks
rev: v8.19.2
hooks:
- id: gitleaks
- repo: local
hooks:
- id: test
name: test
entry: poetry run nox
pass_filenames: false
stages: [pre-push]
language: python
types: [python]