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