-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.pre-commit-config.yaml
45 lines (42 loc) · 1.32 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
36
37
38
39
40
41
42
43
44
45
---
repos:
# - repo: https://github.com/compilerla/conventional-pre-commit
# rev: v3.0.0
# hooks:
# - id: conventional-pre-commit
# stages: [pre-commit]
# args: [chore] # optional: list of Conventional Commits types to allow
- repo: https://github.com/python/black.git
rev: 23.12.0
hooks:
- id: black
stages: [pre-commit]
language_version: python3
args:
- '--target-version=py310'
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
args: [ --markdown-linebreak-ext=md ]
- id: mixed-line-ending
- id: check-byte-order-marker
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
args:
- '--ignore=BLK999,BLK901,D100,D101,D102,D103,D104,D105,D106,D107,D205,D400,D401,D419,E203,E501,W503'
- '--exclude=.git,__pycache__,docs,build,dist,tests/main/fixtures/hooks-abort-render/hooks'
additional_dependencies:
- flake8-absolute-import
- flake8-black
- flake8-docstrings
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
- id: isort
args: ['--profile', 'black']