-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
105 lines (96 loc) · 3.03 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-toml
- id: check-json
exclude: ".*\\.vscode/"
- id: end-of-file-fixer
- id: trailing-whitespace
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: debug-statements
- id: check-merge-conflict
- id: detect-private-key
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/psf/black
rev: 23.9.1
hooks:
- id: black
language_version: python3
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
- id: add-trailing-comma
name: add training comma
- repo: https://github.com/pycqa/docformatter
rev: v1.7.5
hooks:
- id: docformatter
args: [
--wrap-summaries=100,
--wrap-descriptions=0,
--in-place,
--blank
]
- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
- id: gitlint-ci
- repo: https://github.com/python-poetry/poetry
rev: 1.6.1
hooks:
- id: poetry-check
args: ["--lock"]
- repo: https://github.com/pycqa/flake8
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies:
# A flake8 plugin that warn about backslashes usage.
# https://github.com/wemake-services/flake8-broken-line
- "flake8-broken-line"
# A plugin for Flake8 finding likely bugs and design problems in your program.
# https://github.com/PyCQA/flake8-bugbear
- "flake8-bugbear"
# A simple module that adds an extension for the fantastic pydocstyle tool to flake8.
# https://github.com/PyCQA/flake8-docstrings
- "flake8-docstrings"
# Extension to enforce better comma placement.
# flake8 plugin to validate type annotations according to modern practices.
# https://github.com/plinss/flake8-modern-annotations
- "flake8-modern-annotations"
# Flake8 plug-in loading the configuration from pyproject.toml
# https://github.com/john-hen/Flake8-pyproject
- "flake8-pyproject"
# A flake8 plugin checking common style issues or inconsistencies with pytest-based tests.
# https://github.com/m-burst/flake8-pytest-style
- "flake8-pytest-style"
# Extension to lint for quotes
# https://github.com/zheller/flake8-quotes
- "flake8-quotes"
# Typo search tool
- repo: https://github.com/streetsidesoftware/cspell-cli
rev: v7.3.1
hooks:
- id: cspell
- repo: local
hooks:
- id: mypy
name: mypy
entry: inv mypy.run
language: system
pass_filenames: false
types: [ file ]
stages: [ push ]
- id: run tests
name: run tests
entry: inv pytest.run
language: system
pass_filenames: false
types: [ file ]
stages: [ commit ]