Skip to content

Commit

Permalink
add precommit hooks yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
gmgeorg committed Oct 23, 2023
1 parent 4caa0f1 commit aee92c8
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
repos:
- repo: https://github.com/psf/black
rev: 0a37888e79059018eef9293a724b14da59d3377a
hooks:
- id: black
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 848f775476419273bcb928a911170980f0124507
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: requirements-txt-fixer # Sorts entries in requirements.txt
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.6.1
hooks:
- id: mypy
exclude: tests/
- repo: https://github.com/pre-commit/mirrors-isort
rev: '32119baf69e913a72f2e1b1fbe0d56921b670ebb' # Use the revision sha / tag you want to point at
hooks:
- id: isort
- repo: local
hooks:
- id: run-unit-tests
name: Run unit tests
entry: npm run test
language: system
stages: [push]

#- repo: https://github.com/pycqa/pydocstyle
# rev: 4.0.0 # pick a git hash / tag to point to
# hooks:
# - id: pydocstyle

0 comments on commit aee92c8

Please sign in to comment.