Skip to content

Commit

Permalink
Move black and isort configurations in pyproject.toml (#6)
Browse files Browse the repository at this point in the history
* Move black configuration to pyproject.toml

* Move isort configuration in pyproject.toml
  • Loading branch information
plule-ansys authored Apr 7, 2022
1 parent 8e4d679 commit 3c47867
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,13 @@ repos:
hooks:
- id: black
args: [
--line-length, "100",
src, tests
]

- repo: https://github.com/pycqa/isort
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
Expand Down
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 3c47867

Please sign in to comment.