-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
35 lines (33 loc) · 1.07 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
# This file was generated from skeleton-ci/[email protected].
# Instead of changing this particular file, you might want to alter the template:
# https://github.com/skeleton-ci/skeleton-python/tree/0.0.2rc-245-g8c04714/project/%23%25%20if%20precommit%20%25%23.pre-commit-config.yaml%23%25%20endif%20%25%23.jinja
default_install_hook_types:
- "pre-commit"
- "pre-push"
repos:
- repo: "https://github.com/astral-sh/ruff-pre-commit"
rev: "v0.3.4"
hooks:
- id: "ruff"
name: "Run the Ruff linter"
types_or: ["python", "pyi"]
args: ["--fix"]
- id: "ruff-format"
name: "Run the Ruff formatter"
types_or: ["python", "pyi"]
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: "v4.5.0"
hooks:
- id: "check-merge-conflict"
args: ["--assume-in-merge"]
name: "Check for merge conflicts"
stages: ["push"]
- repo: "https://github.com/python-poetry/poetry"
rev: "1.8.2"
hooks:
- id: "poetry-lock"
stages: ["push"]
name: "Run Poetry lock hook"
- id: "poetry-check"
stages: ["push"]
name: "Run Poetry check hook"