Page MenuHomeDevCentral

Update Black style
ClosedPublic

Authored by dereckson on Jun 7 2026, 10:19.
Tags
None
Referenced Files
F57995849: D4107.id10769.diff
Wed, Nov 25, 03:51
Unknown Object (File)
Tue, Nov 24, 06:07
Unknown Object (File)
Sat, Nov 21, 10:09
Unknown Object (File)
Mon, Nov 16, 15:06
Unknown Object (File)
Sat, Nov 14, 22:43
Unknown Object (File)
Sat, Nov 14, 13:31
Unknown Object (File)
Sat, Nov 14, 02:33
Unknown Object (File)
Fri, Nov 13, 17:11
Subscribers
None

Details

Summary

Black style now enforces the number of blank line above a method or class.
As such, our symmetric choice of two blank lines between import and first
definition doesn't comply with black style anymore.

Test Plan

'{path="' + value + '"}' == "{path=\"" + value + "\"}" returns True

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson created this revision.

Flake8 comments unrelated to Black.

Also:

$ find . -type f -name '*.py' | xargs black
All done! ✨ 🍰 ✨
81 files left unchanged.

As we remove lines, and only amend one, an edit to .git-blame-ignore-revs isn't useful, line around the edit points to c56da24dc in git blame.

This revision is now accepted and ready to land.Jun 7 2026, 10:22
This revision was landed with ongoing or failed builds.Jun 7 2026, 10:22
This revision was automatically updated to reflect the committed changes.