-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
42 lines (42 loc) · 1.35 KB
/
.pre-commit-config.yaml
File metadata and controls
42 lines (42 loc) · 1.35 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
40
41
42
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: {{ cookiecutter.pre_commit_hooks_rev }}
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: check-merge-conflict
- id: check-toml
- id: check-json
- id: detect-private-key
- id: check-ast
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: {{ cookiecutter.ruff_pre_commit_rev }}
hooks:
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: {{ cookiecutter.mypy_rev }}
hooks:
- id: mypy
additional_dependencies: [types-requests, types-setuptools]
args: [--config-file=pyproject.toml]
language_version: python3
- repo: https://github.com/PyCQA/bandit
rev: {{ cookiecutter.bandit_rev }}
hooks:
- id: bandit
args: [-c, pyproject.toml]
additional_dependencies: ["bandit[toml]"]
- repo: https://github.com/commitizen-tools/commitizen
rev: {{ cookiecutter.commitizen_rev }}
hooks:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/PyCQA/docformatter
rev: {{ cookiecutter.docformatter_rev }}
hooks:
- id: docformatter
args: [--in-place, --wrap-summaries=88, --wrap-descriptions=88]