Skip to content

Add format-dedent pre-commit hook for dev#1528

Closed
Copilot wants to merge 2 commits intomainfrom
copilot/use-format-dedent-for-dev-again
Closed

Add format-dedent pre-commit hook for dev#1528
Copilot wants to merge 2 commits intomainfrom
copilot/use-format-dedent-for-dev-again

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 25, 2026

Add format-dedent as a local pre-commit hook to auto-format multiline strings inside textwrap.dedent() calls.

  • Added format-dedent>=0.1.1 to dev dependencies
  • Added local pre-commit hook at priority 0 (formatter tier), using uv run --frozen --offline format-dedent --write
  • Local hook used since the upstream repo has no git tags for rev
Original prompt

This section details on the original issue you should resolve

<issue_title>Use format-dedent for dev</issue_title>
<issue_description>https://github.com/15r10nk/format-dedent

As a pre-commit hook</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Add format-dedent>=0.1.1 to dev dependencies and configure it as a
local pre-commit hook that formats multiline strings inside
textwrap.dedent() calls.

Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/8a18a5b4-ad60-402f-8829-6fca51908373
Copilot AI changed the title [WIP] Add format-dedent as a pre-commit hook Add format-dedent pre-commit hook for dev Mar 25, 2026
Copilot AI requested a review from nathanjmcdougall March 25, 2026 03:33
Copilot AI added a commit that referenced this pull request Mar 25, 2026
Create a new agent skill that provides guidance for proactively
identifying tests that are potentially affected by code changes,
to catch regressions before CI.

Includes general principles (trace callers, check integration tests,
check exact-output tests) and domain-specific rules (rule management
changes should always trigger test_readme_example tests).

Closes #1528

Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/3215728e-fb96-40f4-b950-1616594dbc98
nathanjmcdougall added a commit that referenced this pull request Mar 25, 2026
* Initial plan

* Add usethis-python-test-affected-find agent skill

Create a new agent skill that provides guidance for proactively
identifying tests that are potentially affected by code changes,
to catch regressions before CI.

Includes general principles (trace callers, check integration tests,
check exact-output tests) and domain-specific rules (rule management
changes should always trigger test_readme_example tests).

Closes #1528

Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
Agent-Logs-Url: https://github.com/usethis-python/usethis-python/sessions/3215728e-fb96-40f4-b950-1616594dbc98

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: nathanjmcdougall <18602289+nathanjmcdougall@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use format-dedent for dev

2 participants