mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 14:03:02 +00:00
switch to isort for import formatting
isort produces nicer imports without wasting a huge amount of space
This commit is contained in:
@@ -18,10 +18,10 @@ repos:
|
|||||||
- --py36-plus
|
- --py36-plus
|
||||||
|
|
||||||
# Autoformat: Python code
|
# Autoformat: Python code
|
||||||
- repo: https://github.com/asottile/reorder_python_imports
|
- repo: https://github.com/pycqa/isort
|
||||||
rev: v3.0.1
|
rev: 5.10.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: reorder-python-imports
|
- id: isort
|
||||||
|
|
||||||
# Autoformat: Python code
|
# Autoformat: Python code
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
|
@@ -1,3 +1,6 @@
|
|||||||
|
[tool.isort]
|
||||||
|
profile = "black"
|
||||||
|
|
||||||
[tool.black]
|
[tool.black]
|
||||||
skip-string-normalization = true
|
skip-string-normalization = true
|
||||||
target_version = [
|
target_version = [
|
||||||
|
Reference in New Issue
Block a user