-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
37 lines (37 loc) · 1.29 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
37 lines (37 loc) · 1.29 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
repos:
- repo: local
hooks:
- id: docs
name: Format documentation
stages: [manual]
language: node
language_version: 20.5.0
entry: prettier --write --list-different --ignore-unknown README.md
"types": [text]
files: 'README.md'
pass_filenames: false
additional_dependencies:
# When updating the version of prettier, make sure to check the pre-commit file
# And keep the `entry` here up to date https://github.com/pre-commit/mirrors-prettier/blob/master/.pre-commit-hooks.yaml
- prettier@3.0.0
- id: api-docs
name: Generate API docs
stages: [manual]
language: python
entry: bash -c "SPHINX_APIDOC_OPTIONS=members,show-inheritance sphinx-apidoc --output-dir docs --force --no-toc --templatedir docs/_templates src/datadog_api_client *apis *models *version.py"
pass_filenames: false
additional_dependencies:
- Sphinx==7.4.0
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.4
hooks:
- id: ruff
entry: ruff --fix --quiet --exit-zero --fixable I001,F401 --ignore E501 src examples tests
pass_filenames: false
- id: ruff-format
entry: ruff format src examples tests
pass_filenames: false
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-case-conflict