From e7c5852f188a858cb7b77545188b80638cef8887 Mon Sep 17 00:00:00 2001 From: mhucka Date: Fri, 2 Jan 2026 02:41:19 +0000 Subject: [PATCH] Add configuration for isort to `pyproject.toml` Isort lacked a configuration. This adds a configuration based on what Cirq currently uses. --- pyproject.toml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 37d714455..2e118a446 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,3 +43,11 @@ skip = "*musllinux*" [tool.black] target-version = ['py310', 'py311', 'py312', 'py313'] extend-exclude = 'third_party' + +[tool.isort] +profile = 'black' +order_by_type = false # Sort alphabetically, irrespective of case. +skip_gitignore = true +combine_as_imports = true +known_first_party = ["qsimcirq*"] +extend_skip = ["__init__.py"]