-
Notifications
You must be signed in to change notification settings - Fork 7
/
.pre-commit-config.yaml
35 lines (35 loc) · 1.05 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
# Keep tool versions in sync with the versions in requirements-dev.txt
default_language_version:
python: python3
default_install_hook_types: [pre-commit, commit-msg]
default_stages: [pre-commit, manual]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-added-large-files
- repo: https://github.com/psf/black
rev: 24.4.2
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies: [pep8-naming, flake8-bugbear]
exclude: "metarecord/binding|migrations"
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
exclude: "metarecord/binding"
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.8.0
hooks:
- id: commitlint
stages: [commit-msg, manual]
additional_dependencies: ["@commitlint/config-conventional"]