forked from pnxenopoulos/awpy
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.pre-commit-config.yaml
70 lines (70 loc) · 1.71 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
66
67
68
69
70
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
]
- repo: https://github.com/golangci/golangci-lint
rev: v1.54.2
hooks:
- id: golangci-lint
entry: bash -c 'cd awpy/parser && golangci-lint run --new-from-rev HEAD --fix'