Add mypy and pytest to pre-commit.

master
Simon de Vlieger 2 years ago
parent f431ea0e83
commit 7c57116047
  1. 17
      .pre-commit-config.yaml
  2. 8
      .pre-commit-hooks.yaml

@ -4,10 +4,23 @@ repos:
- id: black
name: black
language: system
entry: python3 -m black
entry: python -m black
types: [python]
- id: pytest
name: pytest
language: system
pass_filenames: false
entry: python -m pytest -q
types: [python]
- id: flake8
name: flake8
language: system
entry: flake8
entry: python -m flake8
types: [python]
exclude: ^doc/conf.py
- id: mypy
name: mypy
language: system
entry: python -m mypy
types: [python]
exclude: ^doc/conf.py|^test

@ -1,8 +0,0 @@
- id: black
name: black
description: 'Black: The uncompromising Python code formatter'
entry: black
language: python
language_version: python3
types: [python]
Loading…
Cancel
Save