-
Notifications
You must be signed in to change notification settings - Fork 643
Expand file tree
/
Copy path.isort.cfg
More file actions
24 lines (23 loc) · 1.19 KB
/
Copy path.isort.cfg
File metadata and controls
24 lines (23 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Repository-wide isort configuration.
#
# Why ``.isort.cfg`` and not ``pyproject.toml``?
# This monorepo has no root-level ``pyproject.toml`` — each connector
# is an independent Python project with its own ``pyproject.toml``.
# Adding a root ``pyproject.toml`` solely for isort config would mislead
# tools like ``uv`` that treat ``pyproject.toml`` as a project/build
# definition; it could also conflict with a connector's own
# ``pyproject.toml`` when that connector is opened as the workspace root
# in a local editor or virtual-environment manager. A standalone
# ``.isort.cfg`` carries no such ambiguity.
#
# A handful of connectors ship their own ``pyproject.toml`` with a
# ``[tool.isort]`` section (e.g. ``external-import/dragos``,
# ``external-import/proofpoint-tap``). isort walks up the directory
# tree and stops at the first config it finds, so running isort from
# inside one of those directories uses the connector-level settings
# instead of this file. This is intentional — those connectors manage
# their own formatting config. The repository-wide CI check
# (``isort --profile black --check .``) always runs from the repo root
# and therefore picks up this file.
[settings]
profile = "black"