Skip to content

Commit 1e31419

Browse files
Added pre-commit hook (#1024)
* Added pre-commit hook * Updated pre-commit hook * New NL at EOF --------- Co-authored-by: Ryan Morshead <[email protected]>
1 parent 8120ddc commit 1e31419

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

.pre-commit-config.yaml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
repos:
2+
- repo: local
3+
hooks:
4+
- id: lint-py-fix
5+
name: Fix Python Lint
6+
entry: hatch run lint-py --fix
7+
language: system
8+
pass_filenames: false
9+
- repo: local
10+
hooks:
11+
- id: lint-py-check
12+
name: Check Python Lint
13+
entry: hatch run lint-py
14+
language: system
15+
pass_filenames: false
16+
- repo: local
17+
hooks:
18+
- id: lint-js-fix
19+
name: Fix JS Lint
20+
entry: hatch run lint-js --fix
21+
language: system
22+
pass_filenames: false
23+
- repo: local
24+
hooks:
25+
- id: lint-js-check
26+
name: Check JS Lint
27+
entry: hatch run lint-py
28+
language: system
29+
pass_filenames: false

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ dependencies = [
2121
# publish
2222
"semver >=2, <3",
2323
"twine",
24+
"pre-commit",
2425
]
2526

2627
[tool.hatch.envs.default.scripts]

0 commit comments

Comments
 (0)