-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
84 lines (84 loc) · 2.4 KB
/
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
tools:
python-mypy: &python-mypy
lint-command: 'mypy --show-column-numbers'
lint-formats:
- '%f:%l:%c: %trror: %m'
- '%f:%l:%c: %tarning: %m'
- '%f:%l:%c: %tote: %m'
python-black: &python-black
format-command: 'black --quiet -'
format-stdin: true
python-isort: &python-isort
format-command: 'isort --quiet -'
format-stdin: true
python-ruff: &python-ruff
lint-command: 'ruff --config ~/myconfigs/linters/ruff.toml --quiet ${INPUT}'
lint-stdin: true
lint-formats:
- '%f:%l:%c: %m'
format-command: 'ruff --stdin-filename ${INPUT} --config ~/myconfigs/linters/ruff.toml --fix --exit-zero --quiet -'
format-stdin: true
python-pylint: &python-pylint
lint-command: 'pylint --output-format text --score no --msg-template {path}:{line}:{column}:{C}:{msg} ${INPUT}'
lint-stdin: false
lint-formats:
- '%f:%l:%c:%t:%m'
lint-offset-columns: 1
lint-category-map:
I: H
R: I
C: I
W: W
E: E
F: E
languages:
python:
- <<: *python-isort
- <<: *python-black
- <<: *python-pylint
- <<: *python-mypy
- <<: *python-ruff
cmake:
- lint-command: 'cmake-lint'
lint-formats:
- '%f:%l,%c: %m'
- format-command: 'cmake-format -'
format-stdin: true
json:
- lint-command: 'python3 -m json.tool'
lint-stdin: true
lint-formats:
- '%m: line %l column %c (char %r)'
- format-command: 'python3 -m json.tool'
format-stdin: true
markdown:
- format-command: 'pandoc -f markdown -t gfm -sp --tab-stop=2'
format-stdin: true
rst:
- format-command: 'pandoc -f rst -t rst -s --columns=79'
format-stdin: true
- lint-command: 'rstcheck -'
lint-stdin: true
lint-formats:
- '%f:%l: (%tNFO/1) %m'
- '%f:%l: (%tARNING/2) %m'
- '%f:%l: (%tRROR/3) %m'
- '%f:%l: (%tEVERE/4) %m'
sh:
- lint-command: 'shellcheck -f gcc -x -'
lint-stdin: true
lint-formats:
- '%f:%l:%c: %trror: %m'
- '%f:%l:%c: %tarning: %m'
- '%f:%l:%c: %tote: %m'
tex:
- lint-command: 'chktex -v0 -q'
lint-stdin: true
lint-formats:
- '%f:%l:%c:%m'
yaml:
- lint-command: 'yamllint -c ~/myconfigs/linters/yamllint.yaml -f parsable -'
lint-stdin: true
lua:
- format-command: 'stylua --config-path ~/myconfigs/linters/stylua.toml -'
format-stdin: true