Skip to content

Commit 99d4024

Browse files
KyleKingLee-W
authored andcommitted
build(#325): upgrade isort for black compatibility
1 parent 03406b0 commit 99d4024

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

pyproject.toml

+2-6
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ codecov = "^2.0"
6666
mypy = "^0.770"
6767
mkdocs = "^1.0"
6868
mkdocs-material = "^4.1"
69-
isort = "^4.3.21"
69+
isort = "^5.7.0"
7070
freezegun = "^0.3.15"
7171
pydocstyle = "^5.0.2"
7272
pre-commit = "^2.6.0"
@@ -76,11 +76,7 @@ cz = "commitizen.cli:main"
7676
git-cz = "commitizen.cli:main"
7777

7878
[tool.isort]
79-
multi_line_output = 3
80-
include_trailing_comma = true
81-
force_grid_wrap = 0
82-
combine_as_imports = true
83-
line_length = 88
79+
profile = "black"
8480
known_first_party = ["commitizen", "tests"]
8581

8682
[tool.coverage]

scripts/format

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ fi
77

88
set -x
99

10-
${PREFIX}isort --recursive --apply commitizen tests
10+
${PREFIX}isort commitizen tests
1111
${PREFIX}black commitizen tests

scripts/test

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fi
77

88
${PREFIX}pytest --cov-report term-missing --cov-report=xml:coverage.xml --cov=commitizen tests/
99
${PREFIX}black commitizen tests --check
10-
${PREFIX}isort --recursive --check-only commitizen tests
10+
${PREFIX}isort --check-only commitizen tests
1111
${PREFIX}flake8 commitizen/ tests/
1212
${PREFIX}mypy commitizen/ tests/
1313
${PREFIX}pydocstyle --convention=google --add-ignore=D1,D415

0 commit comments

Comments
 (0)