chore(pre-commit) Use hooks from official repositories

The reason behind this is to make checking and formatting consistent between
contributors and CI. It is also easier to incorporate new hooks, since many
tools already provides pre-commit hooks

In addition this commit also adds `black` and `autoflake` along with a few
other useful hooks from the `pre-commit-hooks` repository.
This commit is contained in:
Joakim Saario 2022-08-21 21:43:03 +02:00
parent 08d485206c
commit b47882b114
No known key found for this signature in database
GPG key ID: D8B76D271B7BD453
4 changed files with 602 additions and 187 deletions

View file

@ -1,3 +1,11 @@
[tool.black]
line-length = 88
[tool.isort]
profile = "black"
combine_as_imports = true
# Poetry build configuration for the aurweb project.
#
# Dependencies:
@ -89,8 +97,6 @@ fastapi = "^0.71.0"
srcinfo = "^0.0.8"
[tool.poetry.dev-dependencies]
flake8 = "^4.0.1"
isort = "^5.9.3"
coverage = "^6.0.2"
pytest = "^6.2.5"
pytest-asyncio = "^0.16.0"