forked from py-mine/mcstatus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
53 lines (48 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
44
45
46
47
48
49
50
51
52
53
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: check-merge-conflict
- id: check-toml # For pyproject.toml
- id: check-yaml # For workflows
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.5.1
hooks:
- id: python-check-blanket-noqa # Enforce noqa annotations (noqa: F401,W203)
- id: python-use-type-annotations # Enforce type annotations instead of type comments
- repo: local
hooks:
- id: black
name: Black
description: Auto-format the code with black
entry: poetry run black
language: system
types: [python]
- repo: local
hooks:
- id: flake8
name: Flake8
description: Run flake8 checks on the code
entry: poetry run flake8
language: system
types: [python]
- repo: local
hooks:
- id: isort
name: ISort
description: Sort imports with isort
entry: poetry run isort
language: system
types: [python]
- repo: local
hooks:
- id: pyright
name: Pyright
description: Run pyright type checker
entry: poetry run pyright
language: system
types: [python]
pass_filenames: false # pyright runs for the entire project, it can't run for single files