-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
35 lines (34 loc) · 1022 Bytes
/
.pre-commit-config.yaml
File metadata and controls
35 lines (34 loc) · 1022 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
exclude: ^(\.github/workflows/|mkdocs\.yml$)
- id: end-of-file-fixer
- id: trailing-whitespace
- id: debug-statements
exclude: ^pyatlan_v9/model/assets/_overlays/
# Use uv to run formatting and QA tools
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.5
hooks:
- id: ruff
- id: ruff
name: ruff-check-autofix
args: ["check", "--select", "I", "--fix", "--silent"]
- id: ruff-format
- repo: local
hooks:
- id: qa-checks
name: qa-checks
entry: uv run ./qa-checks
language: system
types: [python]
pass_filenames: false
stages: [manual]
- id: sync-requirements
name: sync-requirements
entry: bash -c "uv export --all-extras --no-hashes > requirements.txt"
language: system
pass_filenames: false
files: ^uv.lock$