Skip to content

Commit

Permalink
Add pre-commit config
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyMarkinPPC committed Feb 11, 2024
1 parent 6faf919 commit bc28dc8
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: debug-statements
- id: double-quote-string-fixer
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.8.0
hooks:
- id: mypy
verbose: true
entry: bash -c 'mypy "$@" || true'
args: [--ignore-missing-imports]
- repo: local
hooks:
- id: pytest-check
name: pytest-check
entry: pytest
language: system
pass_filenames: false
always_run: true
- id: yapf
name: yapf-formatter
entry: yapf
language: system
pass_filenames: false
always_run: true

0 comments on commit bc28dc8

Please sign in to comment.