Add pre-commit config

This commit is contained in:
Arjan Molenaar 2019-11-08 14:00:27 +01:00
parent b7f4d5b12c
commit 97616fa28f
2 changed files with 13 additions and 2 deletions

10
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,10 @@
repos:
- repo: https://github.com/ambv/black
rev: 19.10b0
hooks:
- id: black
language_version: python3
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.740
hooks:
- id: mypy

View File

@ -24,13 +24,14 @@ classifiers = [
]
[tool.poetry.dependencies]
python = "^3.7"
python = "^3.6"
[tool.poetry.dev-dependencies]
pytest = "^5.2"
pytest-cov = "^2.7"
pytest-runner = "^5.1"
black = { version = "^19.10b0", python = "^3.7" }
black = { version = "^19.10b0", python = "^3.6" }
mypy = "0.740"
pre-commit = "^1.17"
bw_sphinxtheme = "^0.1.8"