-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
103 lines (103 loc) · 3.14 KB
/
.pre-commit-config.yaml
File metadata and controls
103 lines (103 loc) · 3.14 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: check-yaml
args: [ "--unsafe" ]
- id: check-json
- id: pretty-format-json
name: pretty format json (no key sorting)
args: [ "--autofix", "--no-sort-keys" ]
files: "^renovate\\.json$"
- id: pretty-format-json
args: [ "--autofix" ]
exclude: "^renovate\\.json$"
- id: trailing-whitespace
exclude: ".*wallet"
- id: end-of-file-fixer
exclude: ".*wallet|.*profile|.*backup"
- repo: https://github.com/python-poetry/poetry
rev: 2.1.3
hooks:
- id: poetry-lock
name: checking if poetry.lock is consistent with pyproject.toml
language_version: python3.12
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.1.0
hooks:
- id: prettier
name: format stylesheets using prettier
files: \.(scss)$
additional_dependencies:
- 'prettier@2.8.8'
- '@azabraao/prettier-plugin-css-order@1.3.0'
args: [ "--print-width", "120", "--plugin=@azabraao/prettier-plugin-css-order" ]
- id: prettier
name: pretty format markdown
additional_dependencies: [ 'prettier@2.8.8' ]
files: \.md$
args:
- "--print-width"
- "120"
- "--prose-wrap"
- "always"
- "--tab-width"
- "4"
- repo: https://github.com/thibaudcolas/pre-commit-stylelint
rev: v17.4.0
hooks:
- id: stylelint
name: lint and autoformat stylesheets using stylelint
files: \.(scss)$
additional_dependencies:
# stylelint itself needs to be here when using additional_dependencies.
- stylelint@16.2.1
- stylelint-config-standard-scss@13.0.0
args: [ "--fix" ]
- repo: local
hooks:
- id: pydoclint
name: check docstrings with pydoclint
entry: pydoclint clive/ tests/ testnet_node.py
language: system
pass_filenames: false
- id: ruff
name: linting code with Ruff
entry: ruff check --fix
language: system
types: [python]
- id: ruff-format
name: format code using Ruff formatter
entry: ruff format
language: system
types: [python]
- id: mypy
name: type check with mypy
entry: mypy
language: system
types: [python]
- repo: https://github.com/codespell-project/codespell
rev: v2.4.2
hooks:
- id: codespell
args: ["--skip=clive/__private/core/accounts/bad_accounts_list.txt", "-L=accountt"]
- repo: https://github.com/lk16/detect-missing-init
rev: v0.1.6
hooks:
- id: detect-missing-init
args:
- "--create"
- "--python-folders"
- "\
tests/clive-local-tools/clive_local_tools,\
tests/functional/,\
tests/tui/,\
tests/unit/,\
clive,
"
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.9.0.6
hooks:
- id: shellcheck