Skip to content

Commit 1269131

Browse files
authored
Add configuration for isort to pyproject.toml (#987)
`isort` is used in `check/format-incremental`, but there is no configuration for it. This adds a configuration based on what Cirq currently uses.
1 parent 2cac538 commit 1269131

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,11 @@ skip = "*musllinux*"
4343
[tool.black]
4444
target-version = ['py310', 'py311', 'py312', 'py313']
4545
extend-exclude = 'third_party'
46+
47+
[tool.isort]
48+
profile = 'black'
49+
order_by_type = false # Sort alphabetically, irrespective of case.
50+
skip_gitignore = true
51+
combine_as_imports = true
52+
known_first_party = ["qsimcirq*"]
53+
extend_skip = ["__init__.py"]

0 commit comments

Comments
 (0)