Skip to content

[Repo Assist] eng(tooling): add .pre-commit-config.yaml for local formatting and linting - #1797

Draft
github-actions[bot] wants to merge 1 commit into
mainfrom
repo-assist/eng-pre-commit-config-20260905-34e42e3288628ec9
Draft

github-actions[bot] wants to merge 1 commit into
mainfrom
repo-assist/eng-pre-commit-config-20260905-34e42e3288628ec9

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

🤖 This PR was created by Repo Assist, an automated AI assistant.

Problem

Contributors have to remember to run poetry run poe format and poetry run poe lint manually before pushing, or discover failures only after CI runs. There is currently no local hook to catch these issues earlier.

Change

Add a .pre-commit-config.yaml that mirrors the exact same black, isort, and flake8 settings that CI enforces:

Tool Version pinned Key args
black 24.10.0 --line-length 120
isort 5.13.2 --profile black --line-length 120
flake8 7.1.1 --max-line-length 127 --max-complexity 10

To use:

pip install pre-commit
pre-commit install          # registers the git hook
pre-commit run --all-files  # run manually any time

No changes to pyproject.toml, workflow files, or runtime code are required.

Test Status

  • ✅ black --check passes on this file
  • ✅ isort --check passes on this file
  • ✅ flake8 passes
  • No runtime code changed; no unit tests required

Generated by 🌈 Repo Assist, see workflow run. Learn more.

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@11c9a2c442e519ff2b427bf58679f5a525353f76

…tting

Mirror the same black/isort/flake8 checks that CI enforces so contributors
can catch formatting and lint issues before pushing:

  pre-commit install   # run once to register the git hook
  pre-commit run --all-files  # or run manually at any time

Versions are pinned to recent stable releases that satisfy the loose lower
bounds in pyproject.toml.  No pyproject.toml or workflow changes needed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

0 participants