Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added pre-commit hook #1024

Merged
merged 9 commits into from
Jun 13, 2023
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
rmorshea marked this conversation as resolved.
Show resolved Hide resolved
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