Skip to content

Commit

Permalink
add more pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
bimac committed Sep 13, 2023
1 parent ecbbb0c commit b630a08
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ exclude =
.git,
scratch_*.py,
Bonsai,
venv*
venv*
16 changes: 15 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,29 @@
repos:

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
rev: v4.4.0
hooks:
- id: end-of-file-fixer
types_or: [python, yaml, json, toml]
- id: trailing-whitespace
types_or: [python, yaml, json, toml]
- id: check-case-conflict
- id: check-docstring-first
- id: check-ast
- id: check-yaml
- id: check-json
- id: check-toml
- id: check-xml
- id: check-vcs-permalinks
- id: detect-private-key

- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-check-blanket-type-ignore
- id: python-use-type-annotations
- id: python-no-log-warn
- id: text-unicode-replacement-char

- repo: https://github.com/pycqa/flake8
rev: 6.1.0
Expand Down

0 comments on commit b630a08

Please sign in to comment.