-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
43 lines (43 loc) · 1.43 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
# This file contains the [pre-commit](https://pre-commit.com/) configuration of this repository.
# More on which specific pre-commit hooks we use can be found in README.md.
---
minimum_pre_commit_version: "2.9.2"
repos:
- repo: meta
hooks:
- id: identity
- id: check-hooks-apply
- repo: local
hooks:
- id: ruff
name: ruff
description: "Run 'ruff' for extremely fast Python linting"
entry: ruff --force-exclude
language: python
types_or: [ python, pyi ]
require_serial: true
additional_dependencies:
- ruff==0.1.4
- id: ruff-format
name: ruff-format
description: "Run 'ruff format' for extremely fast Python formatting"
entry: ruff format --force-exclude
language: python
types_or: [ python, pyi ]
require_serial: true
additional_dependencies:
- ruff==0.1.4
- id: mypy
name: mypy - Static type checking
description: Mypy helps ensure that we use our functions and variables correctly by checking the types.
entry: mypy
args:
- --install-types
- --non-interactive
- --ignore-missing-imports
- --scripts-are-modules
- --strict
language: system # By using system, we ensure we use the venv of the user and thus use all installed packages.
types:
- python
require_serial: true