forked from glichtner/pystackreg
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pre-commit-config.yaml
42 lines (42 loc) · 1.01 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
exclude: '^docs/'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0 # Use the ref you want to point at
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: mixed-line-ending
- id: pretty-format-json
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
language_version: python3.8
- repo: https://gitlab.com/pycqa/flake8
rev: 3.8.4
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.720
hooks:
- id: mypy
- repo: https://github.com/codespell-project/codespell
rev: 'v2.0.0'
hooks:
- id: codespell
name: codespell
description: Checks for common misspellings in text files.
entry: codespell
language: python
types: [text]
exclude: '\.ipynb'
args: [-I, .codespellignore]
- repo: local
hooks:
- id: tests
name: Run pytest unit tests
entry: pytest -v
language: system
types: [python]
pass_filenames: false
always_run: true