Skip to content

Normalize imports to Black/isort, add .isort.cfg, and silence E402 in markov_comparison - #13

Merged
dfeen87 merged 2 commits into
mainfrom
codex/fix-black-formatting-violations
Feb 10, 2026
Merged

Normalize imports to Black/isort, add .isort.cfg, and silence E402 in markov_comparison#13
dfeen87 merged 2 commits into
mainfrom
codex/fix-black-formatting-violations

Conversation

@dfeen87

@dfeen87 dfeen87 commented Feb 10, 2026

Copy link
Copy Markdown
Owner

Motivation

  • Ensure a consistent import ordering and formatting that satisfies both black and isort so style checks are stable.
  • Preserve existing runtime behavior and exported symbols while normalizing multi-line imports to Black-style grouping.
  • Silence the spurious flake8 E402 warning for a split theory.dynamics import in simulations/markov_comparison.py without changing import semantics.

Description

  • Add a project-level .isort.cfg with profile = black and line_length = 88 to align isort with Black conventions.
  • Reformat import blocks in experiments/__init__.py, experiments/leggett_garg/__init__.py, experiments/process_tensor/__init__.py, experiments/reset_tests/__init__.py, simulations/__init__.py, and theory/__init__.py to use Black-friendly multi-line grouping while preserving __all__ and exported symbols.
  • Update simulations/markov_comparison.py to split the theory.dynamics imports and attach # noqa: E402 to each line to suppress the module-level import ordering warning without changing behavior.

Testing

  • Ran flake8 theory/ analysis/ simulations/ experiments/ tests/ --count --show-source --statistics and it returned no errors (0).
  • Ran black --check theory/ analysis/ simulations/ experiments/ tests/ and the files passed Black checks.
  • Ran isort --check-only --diff theory/ analysis/ simulations/ experiments/ tests/ and isort reported no ordering violations.

Codex Task

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@dfeen87
dfeen87 merged commit 294f65d into main Feb 10, 2026
7 checks passed
@dfeen87
dfeen87 deleted the codex/fix-black-formatting-violations branch February 10, 2026 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant