-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
28 lines (26 loc) · 810 Bytes
/
.pre-commit-config.yaml
File metadata and controls
28 lines (26 loc) · 810 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
# This pre-commit config is mainly aimed at formatting and linting the Python files in python-objectstore-client.
# However, pre-commit requires this file to be placed at the root of the repository.
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
- repo: local
hooks:
- id: ruff-format
name: ruff format
entry: ruff format
language: system
types_or: [python, pyi]
- id: ruff-check-fix
name: ruff check --fix
entry: ruff check --fix
language: system
types_or: [python, pyi]
- id: mypy
name: mypy
entry: .venv/bin/mypy
language: system
types: [python]