Skip to content

Commit 3b2b117

Browse files
committed
config: Add pyproject.toml to configure black and isort compatibility
- Configure isort with profile="black" to ensure compatibility - Set consistent line length (88) for both tools - Fix import sorting in 10 files using black-compatible settings - This prevents recurring conflicts between black and isort
1 parent df23665 commit 3b2b117

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[tool.black]
2+
line-length = 88
3+
target-version = ['py311']
4+
include = '\.pyi?$'
5+
extend-exclude = '''
6+
/(
7+
# directories
8+
\.eggs
9+
| \.git
10+
| \.hg
11+
| \.mypy_cache
12+
| \.tox
13+
| \.venv
14+
| build
15+
| dist
16+
)/
17+
'''
18+
19+
[tool.isort]
20+
profile = "black"
21+
line_length = 88
22+
multi_line_output = 3
23+
include_trailing_comma = true
24+
force_grid_wrap = 0
25+
use_parentheses = true
26+
ensure_newline_before_comments = true
27+

0 commit comments

Comments
 (0)