Skip to content

Commit

Permalink
Feat/fix pre-commit (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
DhruvJ225 authored Dec 15, 2023
1 parent 24031db commit a817e53
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
18 changes: 10 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
---
default_language_version:
python: python3
node: "14.16.0"
node: "16.19.1"
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: trailing-whitespace

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.9-for-vscode
rev: v4.0.0-alpha.5
hooks:
- id: prettier
stages: [commit]

- repo: https://github.com/jorisroovers/gitlint
rev: v0.19.1
hooks:
- id: gitlint
# - repo: https://github.com/jorisroovers/gitlint
# rev: v0.19.1
# hooks:
# - id: gitlint
# additional_dependencies: ["./gitlint-core[trusted-deps]"]
# entry: gitlint

- repo: https://github.com/adrienverge/yamllint.git
rev: v1.31.0
rev: v1.33.0
hooks:
- id: yamllint
exclude: >
Expand Down
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ commands =
/bin/sh -c "if [ -f .git/COMMIT_EDITMSG ]; then \
cp .git/COMMIT_EDITMSG .git/COMMIT_MSGTOX; else \
git log HEAD -n1 --pretty=%B > .git/COMMIT_MSGTOX; fi"
pre-commit run gitlint --hook-stage commit-msg --commit-msg-filename .git/COMMIT_MSGTOX
/bin/sh -c "rm -f .git/COMMIT_MSGTOX"
/bin/sh -c "if [ -f .git/REMOVE_USERNAME ]; then \
git config --global --unset user.name; \
Expand Down

0 comments on commit a817e53

Please sign in to comment.