-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
35 lines (34 loc) · 842 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
35 lines (34 loc) · 842 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: local
hooks:
- id: pytest
name: pytest
# entry: pytest tests
entry: pytest tests --quiet
language: system
pass_filenames: false
always_run: true
stages: [pre-merge-commit]
# - repo: https://github.com/psf/black
# rev: 22.10.0
# hooks:
# - id: black
# args: ["--quiet"]
# language: system
# - repo: https://github.com/pycqa/isort
# rev: 5.12.0
# hooks:
# - id: isort
# args: ["--profile", "black", "--quiet"]
# language: system
# https://github.com/astral-sh/ruff-pre-commit
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.14.1
hooks:
# # Run the linter.
# - id: ruff-check
# args: [ --fix ]
# Run the formatter.
- id: ruff-format