-
Notifications
You must be signed in to change notification settings - Fork 49
/
.pre-commit-config.yaml
43 lines (39 loc) · 1.09 KB
/
.pre-commit-config.yaml
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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
# Generic hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
# # License headers
# - repo: https://github.com/fsfe/reuse-tool
# rev: v2.1.0
# hooks:
# - id: reuse
# Formatting
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
# Ruff
- repo: https://github.com/charliermarsh/ruff-pre-commit
# Ruff version.
rev: v0.8.4
hooks:
- id: ruff
- repo: local
hooks:
- id: database-graph
name: Update the database schema graph
language: python
additional_dependencies: [paracelsus, sqlalchemy-helpers]
entry: paracelsus
args: [inject, doc/database_schema.md, "mirrormanager2.lib.model:BASE"]
files: mirrormanager2/lib/model\.py
require_serial: true
pass_filenames: false
verbose: true