-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
45 lines (45 loc) · 1.27 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/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: pretty-format-json
args: [--autofix, --no-ensure-ascii, --top-keys, $schema]
- repo: local
hooks:
- id: control-database
name: Control the database
entry: python python/json_control_database.py
language: python
always_run: true
pass_filenames: false
additional_dependencies:
- beautifulsoup4~=4.12
- openpyxl~=3.1
- requests~=2.31
- Babel~=2.13
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.2
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
args: [--config-file=pyproject.toml]
additional_dependencies:
- lxml-stubs~=0.4
- openpyxl-stubs~=0.1
- types-babel~=2.11
- types-beautifulsoup4~=4.12
- types-requests~=2.31
- repo: https://github.com/DanielNoord/pydocstringformatter
rev: v0.7.3
hooks:
- id: pydocstringformatter