-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
43 lines (40 loc) · 1.27 KB
/
.pre-commit-config.yaml
File metadata and controls
43 lines (40 loc) · 1.27 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
repos:
- repo: https://github.com/sqlfluff/sqlfluff
rev: 3.3.1 # Vérifie la dernière version sur GitHub
hooks:
- id: sqlfluff-lint
args: [ "--config", ".sqlfluff" ] # Adapte au dialecte que tu utilises (bigquery, snowflake, etc.)
files: dbt_/
- id: sqlfluff-fix # Optionnel, pour corriger automatiquement les erreurs
args: [ "--config", ".sqlfluff" ]
files: dbt_/
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.9.3
hooks:
# Run the linter.
- id: ruff
args: [ --fix ]
# Run the formatter.
- id: ruff-format
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-merge-conflict
- id: mixed-line-ending
#- repo: https://github.com/pycqa/bandit
# rev: 1.7.4
# hooks:
# - id: bandit
# exclude: tests/
# This pre commit only work with poetry so we commented it as we work with uv
# - repo: https://github.com/Lucas-C/pre-commit-hooks-safety
# rev: v1.3.1
# hooks:
# - id: python-safety-dependencies-check
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.5.1
hooks:
- id: prettier
types_or: [markdown, javascript, jsx, ts, tsx, json]
files: 'webapp'