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
57 lines (52 loc) · 1.49 KB
/
.pre-commit-config.yaml
File metadata and controls
57 lines (52 loc) · 1.49 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
54
55
56
57
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.15.5
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: v6.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]
stages: [pre-push]
- repo: https://github.com/python-poetry/poetry
rev: 2.3.2
hooks:
- id: poetry-check
args: ["-C", "api"]
default_install_hook_types: [pre-commit, pre-push]
default_stages: [pre-commit]
ci:
skip: [generate-docs, python-typecheck]
autoupdate_commit_msg: "ci: pre-commit autoupdate"