Skip to content

Commit

Permalink
Set up pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
iafisher committed Jun 19, 2024
1 parent a6fab24 commit 617865e
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
default_language_version:
python: python3.11
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
# Generic
- id: check-added-large-files
- id: check-byte-order-marker
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
- id: end-of-file-fixer
- id: trailing-whitespace
# Python
- id: check-ast
- id: debug-statements
# Other languages
- id: check-json
- id: check-yaml
- id: check-toml
- id: check-xml

- repo: local
hooks:
- id: typechecker
name: typechecker
description: 'Type-check the package'
entry: npm
language: system
pass_filenames: false
args: [run, check]

0 comments on commit 617865e

Please sign in to comment.