-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
52 lines (52 loc) · 1.46 KB
/
.pre-commit-config.yaml
File metadata and controls
52 lines (52 loc) · 1.46 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
43
44
45
46
47
48
49
50
51
52
repos:
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args: [--exclude-secrets=(^my_pw$)|(^inform$)]
# Formats docstrings to comply with PEP257.
# Use --black to keep output compatible with ruff-format.
- repo: https://github.com/PyCQA/docformatter
rev: 06907d0
hooks:
- id: docformatter
additional_dependencies: [tomli]
args:
- --in-place
- --black
- --config=pyproject.toml
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.2
hooks:
- id: ruff
args:
- --fix
- ./
- id: ruff-format
# Type-checking python code.
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
hooks:
- id: mypy
args: [--config-file=pyproject.toml]
additional_dependencies:
[
"pandas-stubs",
"types-psycopg2",
"types-pika",
"types-requests",
]
files: src/
# a collection of sanity checks: check for merge conflicts, check the end of
# lines, check for DOS vs unix stuff, and a newline at the end of files.
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-case-conflict
- id: check-docstring-first
- id: check-merge-conflict
- id: check-toml
- id: end-of-file-fixer
- id: mixed-line-ending
args:
- --fix=lf