-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
38 lines (38 loc) · 1015 Bytes
/
.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
default_install_hook_types: ["pre-commit", "commit-msg"]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: end-of-file-fixer
- repo: local
hooks:
- id: mypy
name: mypy
entry: scripts/mypy.sh
language: system
types_or: [python, pyi]
pass_filenames: false
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.11.0
hooks:
- id: black
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.5
hooks:
- id: ruff
- repo: local
hooks:
- id: pipenv-requirements
name: pipenv-requirements
files: Pipfile\.lock
language: system
pass_filenames: false
entry: sh -c 'pipenv requirements | grep -vF --regex="-i https://pypi.org/simple" >| requirements.txt'
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint