chore(ci): move black config to pyproject.toml (#93)

* chore(ci): move black config to pyproject.toml

* chore(deps): update target version
This commit is contained in:
Jérome Eertmans
2022-12-08 11:34:20 +01:00
committed by GitHub
parent 9f227936f7
commit 1fed193cb3
2 changed files with 4 additions and 2 deletions

View File

@ -14,7 +14,6 @@ repos:
rev: 22.10.0 rev: 22.10.0
hooks: hooks:
- id: black - id: black
args: ["--target-version", "py37"]
- repo: https://github.com/PyCQA/flake8 - repo: https://github.com/PyCQA/flake8
rev: 6.0.0 rev: 6.0.0
hooks: hooks:

View File

@ -65,7 +65,10 @@ build-backend = "poetry.core.masonry.api"
[tool.isort] [tool.isort]
profile = "black" profile = "black"
py_version = 37 py_version = 38
[tool.black]
target-version = ["py38"]
[tool.poetry.plugins] [tool.poetry.plugins]
[tool.poetry.plugins."console_scripts"] [tool.poetry.plugins."console_scripts"]