forked from Flagsmith/flagsmith
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
53 lines (49 loc) · 1.38 KB
/
.pre-commit-config.yaml
File metadata and controls
53 lines (49 loc) · 1.38 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
53
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.11.11
hooks:
# Run the linter.
- id: ruff
args: [--config, api/pyproject.toml, --config, "src = ['api']", --fix]
# Run the formatter.
- id: ruff-format
args: [--config, api/pyproject.toml, --config, "src = ['api']"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
- id: check-json
- id: check-toml
- repo: local
hooks:
- id: prettier
name: prettier
language: node
entry: prettier
additional_dependencies:
- prettier@3.4.2
args:
- --check
types: [javascript, jsx, ts, tsx, markdown, mdx, html, css, json, yaml]
- id: generate-docs
name: generate-docs
language: system
entry: make -C api generate-docs
pass_filenames: false
types: [python,toml]
- id: python-typecheck
name: python-typecheck
language: system
entry: poetry -C api run mypy .
require_serial: true
pass_filenames: false
types: [python]
- repo: https://github.com/python-poetry/poetry
rev: 2.1.3
hooks:
- id: poetry-check
args: ["-C", "api"]
ci:
skip: [generate-docs, python-typecheck]
autoupdate_commit_msg: "ci: pre-commit autoupdate"