Skip to content

Conversation

@0xrusowsky
Copy link
Contributor

@0xrusowsky 0xrusowsky commented Oct 16, 2025

Motivation

closes #12118

Solution

when the input path requires discovery (i.e. ., or lib/.) check if it is a lib path. If it is not, ignore libs.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Copy link
Collaborator

@grandizzy grandizzy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense, left a comment re test

@0xrusowsky 0xrusowsky requested a review from grandizzy October 16, 2025 08:20
Copy link
Collaborator

@grandizzy grandizzy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Member

@zerosnacks zerosnacks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice 👍

@grandizzy grandizzy merged commit 122d65a into master Oct 16, 2025
16 checks passed
@grandizzy grandizzy deleted the rusowsky/12118 branch October 16, 2025 15:18
@github-project-automation github-project-automation bot moved this to Done in Foundry Oct 16, 2025
grandizzy pushed a commit to grandizzy/foundry that referenced this pull request Oct 16, 2025
* fix(fmt): account for ternary operators when estimating size

* fix(fmt): filter libs when recursing

* style: clippy

* test: wipe contracts before formatting

* test: explicitly test ignore
grandizzy added a commit that referenced this pull request Oct 18, 2025
* fix(anvil): eth_getAccountInfo check if predates fork inclusive (#12101)

* fix(doc): follow tab width fmt config (#12103)

* fix(fmt): account for ternary operators when estimating size (#12104)

* fix(fmt): account for ternary operators when estimating size (#12112)

* fix(fmt): properly handle multiline_func_header = "all" + bump alloy (#12110)

* fix: don't normalize single-line non-doc block cmnts

* fix: preserve consecutive whitespaces

* fix: use byte length instead of char count

* fix(fmt): properly handle multiline_func_header = "all"

* fix: bump alloy

* fix: bump alloy

* chore: bump version to 1.4.2 (#12113)

* fix(fmt): handle trailing coments between base contracts (#12127)

* fix(fmt): account for ternary operators when estimating size

* fix(fmt): handle comments between inherited base contracts

* test: layout + base inheritance

* fix(fmt): filter libs when recursing (#12119)

* fix(fmt): account for ternary operators when estimating size

* fix(fmt): filter libs when recursing

* style: clippy

* test: wipe contracts before formatting

* test: explicitly test ignore

* fix(fmt): break try stmts in a fn header-like fashion (#12131)

* fix(fmt): use nbsp if LHS-most element fits (#12135)

* fix(fmt): use nbsp if LHS-most element fits

* fix(fmt): use nbsp if LHS-most element fits

* reset cache inside helper

* fix(fmt): prioritize parenthesis breaks in emit and revert stmts (#12147)

* fix(fmt): prioritize parenthesis breaks in emit and revert stmts

* fix(fmt): respect bracket spacing when printing commasetp without
delimiters

---------

Co-authored-by: 0xrusowsky <90208954+0xrusowsky@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

Status: Done

Development

Successfully merging this pull request may close these issues.

bug(fmt): fmt should not format lib srcs

4 participants