A .flake8 => .flake8 +3 -0
@@ 0,0 1,3 @@
+[flake8]
+max-line-length = 90
+exclude = __init__.py
A .pre-commit-config.yaml => .pre-commit-config.yaml +10 -0
@@ 0,0 1,10 @@
+repos:
+- repo: https://github.com/ambv/black
+ rev: stable
+ hooks:
+ - id: black
+ #language_version: python3.6
+- repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v1.2.3
+ hooks:
+ - id: flake8
M Pipfile => Pipfile +2 -0
@@ 11,6 11,8 @@ google-cloud-texttospeech = "*"
mypy = "*"
black = "*"
flit = "*"
+pre-commit = "*"
+"flake8" = "*"
[requires]
python_version = "3.7"