-
Notifications
You must be signed in to change notification settings - Fork 58
/
.pre-commit-config.yaml
65 lines (65 loc) · 1.53 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
54
55
56
57
58
59
60
61
62
63
64
65
exclude: docs/
repos:
- repo: 'https://github.com/pre-commit/pre-commit-hooks'
rev: v4.4.0
hooks:
- id: check-yaml
language: python
- id: check-json
language: python
- id: end-of-file-fixer
language: python
- id: trailing-whitespace
language: python
- id: check-docstring-first
language: python
- id: requirements-txt-fixer
language: python
- id: check-merge-conflict
language: python
- id: check-toml
language: python
- id: check-xml
language: python
- id: check-ast
language: python
- id: check-builtin-literals
language: python
- repo: 'https://github.com/charliermarsh/ruff-pre-commit'
rev: v0.0.291
hooks:
- id: ruff
args:
- '--fix'
- '--exit-non-zero-on-fix'
- repo: 'https://github.com/psf/black'
rev: 23.9.1
hooks:
- id: black
language: python
- repo: https://github.com/crate-ci/typos
rev: v1.16.13
hooks:
- id: typos
args: []
- repo: local
hooks:
- id: pyright
name: pyright
entry: pyright
language: system
types: [python]
pass_filenames: false
- repo: local
hooks:
- id: pylint
name: pylint
entry: pylint awpy
language: system
types: [python]
pass_filenames: false
args:
[
"-rn", # Only display messages
"-sn", # Don't display the score
]