-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
39 lines (38 loc) · 1001 Bytes
/
.pre-commit-config.yaml
File metadata and controls
39 lines (38 loc) · 1001 Bytes
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
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.15.11
hooks:
# Run the linter.
- id: ruff
args: [--fix]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/astral-sh/uv-pre-commit
rev: 0.11.7
hooks:
- id: uv-lock
- 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: flagsmith-lint-tests
name: flagsmith-lint-tests
language: system
entry: python -P src/common/lint_tests.py
types: [python]
files: ^tests/.*test_.*\.py$
- id: python-typecheck
name: python-typecheck
language: system
entry: make typecheck
require_serial: true
pass_filenames: false
types: [python]
ci:
skip: [python-typecheck, uv-lock]
autoupdate_commit_msg: "ci: pre-commit autoupdate"