-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
44 lines (44 loc) · 1.06 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
minimum_pre_commit_version: 2.2.0
default_language_version:
python: python3
default_stages: [commit]
fail_fast: true
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
- id: check-json
- id: check-added-large-files
args: [--maxkb=500]
- id: end-of-file-fixer
files: ^.ipynb
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 24.10.0
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
rev: 7.1.1
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.13.0
hooks:
- id: mypy
name: mypy --strict
entry: >
mypy --strict --show-error-codes persistable
args: [--ignore-missing-imports]
pass_filenames: false
- repo: local
hooks:
- id: pytest
name: pytest
entry: pytest
pass_filenames: false
always_run: true
language: system
types: [python]
stages: [push]
verbose: true