Skip to content

Commit

Permalink
Added pre-commit hook (#1024)
Browse files Browse the repository at this point in the history
* Added pre-commit hook

* Updated pre-commit hook

* New NL at EOF

---------

Co-authored-by: Ryan Morshead <ryan.morshead@gmail.com>
  • Loading branch information
Smit-Parmar and rmorshea authored Jun 13, 2023
1 parent 8120ddc commit 1e31419
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
repos:
- repo: local
hooks:
- id: lint-py-fix
name: Fix Python Lint
entry: hatch run lint-py --fix
language: system
pass_filenames: false
- repo: local
hooks:
- id: lint-py-check
name: Check Python Lint
entry: hatch run lint-py
language: system
pass_filenames: false
- repo: local
hooks:
- id: lint-js-fix
name: Fix JS Lint
entry: hatch run lint-js --fix
language: system
pass_filenames: false
- repo: local
hooks:
- id: lint-js-check
name: Check JS Lint
entry: hatch run lint-py
language: system
pass_filenames: false
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ dependencies = [
# publish
"semver >=2, <3",
"twine",
"pre-commit",
]

[tool.hatch.envs.default.scripts]
Expand Down

0 comments on commit 1e31419

Please sign in to comment.