Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9696622
D3972.id13998.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
698 B
Subscribers
None
D3972.id13998.diff
View Options
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -47,6 +47,11 @@
hooks:
- id: black
+- repo: https://github.com/PyCQA/isort
+ rev: 5.5.2
+ hooks:
+ - id: isort
+
# unfortunately, we are far from being able to enable this...
# - repo: https://github.com/PyCQA/pydocstyle.git
# rev: 4.0.0
diff --git a/pyproject.toml b/pyproject.toml
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,2 +1,10 @@
[tool.black]
target-version = ['py37']
+
+[tool.isort]
+multi_line_output = 3
+include_trailing_comma = true
+force_grid_wrap = 0
+use_parentheses = true
+ensure_newline_before_comments = true
+line_length = 88
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Aug 17, 8:48 PM (1 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3234644
Attached To
D3972: pre-commit: Add isort hook and configuration
Event Timeline
Log In to Comment