switch to isort for import formatting

isort produces nicer imports without wasting a huge amount of space
This commit is contained in:
Min RK
2022-03-31 12:21:57 +02:00
parent d9b85a819e
commit c41b732fbd
2 changed files with 6 additions and 3 deletions

View File

@@ -18,10 +18,10 @@ repos:
- --py36-plus
# Autoformat: Python code
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.0.1
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: reorder-python-imports
- id: isort
# Autoformat: Python code
- repo: https://github.com/psf/black

View File

@@ -1,3 +1,6 @@
[tool.isort]
profile = "black"
[tool.black]
skip-string-normalization = true
target_version = [