From 81c882315ad3ef1038c2f3136a69956ad7a5841c Mon Sep 17 00:00:00 2001 From: stijndcl Date: Mon, 11 Jul 2022 22:35:04 +0200 Subject: [PATCH] Add black pre-commit --- .pre-commit-config.yaml | 10 ++++++++++ requirements-dev.txt | 1 + 2 files changed, 11 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..d9b8bef --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,10 @@ +default_language_version: + python: 3.9.5 + +repos: +- repo: https://github.com/ambv/black + rev: 22.3.0 + hooks: + - id: black + args: + - --config=pyproject.toml diff --git a/requirements-dev.txt b/requirements-dev.txt index d8cb56f..6c6e38e 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,6 +1,7 @@ black==22.3.0 coverage[toml]==6.4.1 mypy==0.961 +pre-commit==2.20.0 pytest==7.1.2 pytest-asyncio==0.18.3 pytest-env==0.6.2