Skip to content

Commit

Permalink
Fix(Isort) Add isort config to pyproject.toml file (#3944)(patch)
Browse files Browse the repository at this point in the history
## Description
To avoid differing configurations between different installation, this PR adds the isort configuration to the `pyproject.toml` file

### Added

- isort config to `pyproject.toml` file
  • Loading branch information
Vince-janv authored Nov 18, 2024
1 parent 40c89d2 commit d237e15
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
repos:
- repo: https://github.com/psf/black
rev: 24.8.0
rev: 24.10.0
hooks:
- id: black
args: [--line-length=100]
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
name: isort
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.6
rev: v0.7.4
hooks:
- id: ruff

4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ line-length = 100

[tool.isort]
profile = "black"
include_trailing_comma = "true"
line_length=100
multi_line_output=3
ensure_newline_before_comments = "true"

[tool.ruff]
line-length = 100
Expand Down

0 comments on commit d237e15

Please sign in to comment.