github NixOS/nixfmt v1.3.0

10 hours ago
  • Updated our dependencies: #389
  • Replaced references to nixfmt-rfc-style with nixfmt: #369, #389
  • Format pipe operator chains on multiple lines: #372
  • Deprecated formatting stdin without a - command line argument: #376
  • Fixed idempotency regressions discovered by nixfmt-rs: #387
    • Only parse the or default clause when selectors are present, preventing silent discard of or used as a bare identifier.
    • Insert space before . in integer/float selections to prevent 1 .a from becoming 1.a (re-lexed as float).
    • Add leading hardspace in absorbOperation for Application, preventing / and /* from merging into //* when a language annotation comment follows a division operator.
    • Language annotation after other trivia splits from string.
    • Parenthesis-trailing comment idempotency in assignment right-hand-side.
    • let-in trailing comment idempotency.
    • Leading blank lines causing non-idempotent formatting.
  • Absorb single-line destructured params into parenthesized functions: #377
  • Enforce that there are no warnings in our haskell code: #390
  • Minor cleanup to our flake:
    • Dropped flake-utils dependency: #401
    • Added flake description: #404
    • Removed top-level IFD: #403

Don't miss a new nixfmt release

NewReleases is sending notifications on new releases.