-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
42 lines (42 loc) · 1.18 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
# Update the versions occasionally with 'pre-commit autoupdate', then update the
# versions in requirements.txt to match in order to avoid conflicting results
# from manual and automatic code checks.
repos:
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
args:
- --line-length=79
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
# - id: check-added-large-files
# args: ['maxkb=500']
- id: check-ast
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-toml
- id: check-yaml
- repo: https://github.com/pycqa/flake8
rev: 6.0.0
hooks:
- id: flake8
args:
- "--ignore=E203,W503"
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.1.1
hooks:
- id: mypy
additional_dependencies: [pandas-stubs, types-Pillow, types-setuptools, types-PyYAML]
- repo: local
hooks:
- id: pytest
stages: [commit, push]
types: [python]
name: pytest
entry: pytest
pass_filenames: false
language: system
always_run: true