From 524c40e0ee1599b9609cf3afc5eb5b8a042395d3 Mon Sep 17 00:00:00 2001 From: plule Date: Wed, 6 Apr 2022 15:08:22 +0200 Subject: [PATCH 1/2] Move black configuration to pyproject.toml --- .pre-commit-config.yaml | 1 - pyproject.toml | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9baea34..d2a9c66 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 ] diff --git a/pyproject.toml b/pyproject.toml index 7f295c2..86f7a08 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,3 +32,6 @@ name = "ansys.platform.instancemanagement" [project.urls] Source = "https://github.com/pyansys/pypim" + +[tool.black] +line-length = 100 From 900304d12a3f3252a47e0f66271a51440fd15c17 Mon Sep 17 00:00:00 2001 From: plule Date: Wed, 6 Apr 2022 17:04:10 +0200 Subject: [PATCH 2/2] Move isort configuration in pyproject.toml --- .pre-commit-config.yaml | 7 ------- pyproject.toml | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d2a9c66..65c9cd1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,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 86f7a08..514b495 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,3 +35,10 @@ 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"