diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9baea34..65c9cd1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,7 +5,6 @@ repos: hooks: - id: black args: [ - --line-length, "100", src, tests ] @@ -13,13 +12,6 @@ repos: rev: 5.10.1 hooks: - id: isort - args: [ - --profile, black, - --force-sort-within-sections, - --line-length, "100", - --section-default, THIRDPARTY, - src, tests, doc - ] - repo: https://gitlab.com/PyCQA/flake8 rev: 4.0.1 diff --git a/pyproject.toml b/pyproject.toml index 7f295c2..514b495 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,3 +32,13 @@ name = "ansys.platform.instancemanagement" [project.urls] Source = "https://github.com/pyansys/pypim" + +[tool.black] +line-length = 100 + +[tool.isort] +profile = "black" +src_paths = ["src", "tests", "doc"] +force_sort_within_sections = "true" +line_length = 100 +default_section = "THIRDPARTY"