diff --git a/pyproject.toml b/pyproject.toml index fca093493e..e4b5e6ae88 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -66,7 +66,7 @@ codecov = "^2.0" mypy = "^0.770" mkdocs = "^1.0" mkdocs-material = "^4.1" -isort = "^4.3.21" +isort = "^5.7.0" freezegun = "^0.3.15" pydocstyle = "^5.0.2" pre-commit = "^2.6.0" @@ -76,11 +76,7 @@ cz = "commitizen.cli:main" git-cz = "commitizen.cli:main" [tool.isort] -multi_line_output = 3 -include_trailing_comma = true -force_grid_wrap = 0 -combine_as_imports = true -line_length = 88 +profile = "black" known_first_party = ["commitizen", "tests"] [tool.coverage] diff --git a/scripts/format b/scripts/format index c643dbc14b..47b2b90f44 100755 --- a/scripts/format +++ b/scripts/format @@ -7,5 +7,5 @@ fi set -x -${PREFIX}isort --recursive --apply commitizen tests +${PREFIX}isort commitizen tests ${PREFIX}black commitizen tests diff --git a/scripts/test b/scripts/test index 6b4f81c81b..08c54035dc 100755 --- a/scripts/test +++ b/scripts/test @@ -7,7 +7,7 @@ fi ${PREFIX}pytest --cov-report term-missing --cov-report=xml:coverage.xml --cov=commitizen tests/ ${PREFIX}black commitizen tests --check -${PREFIX}isort --recursive --check-only commitizen tests +${PREFIX}isort --check-only commitizen tests ${PREFIX}flake8 commitizen/ tests/ ${PREFIX}mypy commitizen/ tests/ ${PREFIX}pydocstyle --convention=google --add-ignore=D1,D415