Skip to content

Commit 1614c7d

Browse files
author
Hugo Osvaldo Barrera
committed
Set up isort
1 parent 9401ff3 commit 1614c7d

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

.pre-commit-config.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# See https://pre-commit.com for more information
2-
# See https://pre-commit.com/hooks.html for more hooks
3-
# vim: set nospell:
41
repos:
52
- repo: https://github.com/pre-commit/pre-commit-hooks
63
rev: v4.0.1
@@ -9,10 +6,10 @@ repos:
96
args: [--markdown-linebreak-ext=md]
107
- id: end-of-file-fixer
118
- id: debug-statements
12-
- repo: https://github.com/asottile/reorder_python_imports
13-
rev: v2.6.0
9+
- repo: https://github.com/pycqa/isort
10+
rev: 5.9.3
1411
hooks:
15-
- id: reorder-python-imports
12+
- id: isort
1613
- repo: https://github.com/psf/black
1714
rev: "21.7b0"
1815
hooks:
@@ -21,7 +18,9 @@ repos:
2118
rev: "3.9.2" # pick a git hash / tag to point to
2219
hooks:
2320
- id: flake8
24-
additional_dependencies: [flake8-comprehensions, flake8-import-order, flake8-bugbear]
21+
additional_dependencies:
22+
- flake8-comprehensions
23+
- flake8-bugbear
2524
- repo: https://github.com/pre-commit/mirrors-mypy
2625
rev: 'v0.910' # Use the sha / tag you want to point at
2726
hooks:

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ exclude = docs/conf.py
33
max-line-length = 88
44
extend-ignore = E203, W503
55

6+
[isort]
7+
force_single_line=true
8+
69
[tool:pytest]
710
addopts =
811
-vv

0 commit comments

Comments
 (0)