-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
39 lines (39 loc) · 1.02 KB
/
.pre-commit-config.yaml
File metadata and controls
39 lines (39 loc) · 1.02 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
# .pre-commit-config.yaml
default_stages: [pre-commit, pre-merge-commit]
default_install_hook_types: [pre-commit, pre-merge-commit, commit-msg]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.1.0
hooks:
- id: black
language_version: python3.12
args: [--config, pyproject.toml]
- repo: https://github.com/PyCQA/isort
rev: 6.0.1
hooks:
- id: isort
- repo: https://github.com/PyCQA/flake8
rev: 7.2.0
hooks:
- id: flake8
- repo: local
hooks:
- id: mypy
name: mypy
entry: "mypy ."
pass_filenames: false
language: python
language_version: python3.12
types: [python]
require_serial: false
verbose: true
- repo: https://github.com/commitizen-tools/commitizen
rev: v4.8.2
hooks:
- id: commitizen
stages: [commit-msg]